On Mittwoch, 21. April 2021, 10:42:48 CEST Mark Olesen wrote:
I am maintaining OpenFOAM (www.openfoam.com) packaging on the science repo and need some advice.
For various reasons, we maintain the last few releases as packages, which are also designed to allow side-by-side installation with each other.
Currently I have all of the versions in separate projects: - science/openfoam1912 - science/openfoam2006 - science/openfoam2012
and a meta-package to reference the current version: - science/openfoam (requires openfoam2012)
This can be simplified by simply folding the meta-package and versioned-packages together.
In doing so, the science/openfoam would sensibly contain the full build of the most recent stable version. But when a future version comes out, I would then like to "archive" the current state (eg, 2106) appropriately:
1. openfoam using 2106 2. "snapshot" of "openfoam" as "openfoam2106" project 3. update openfoam to 2112 and rebuild/republish
Is there any way to do this apart from a manual copy and update, which would presumably also trigger a complete rebuild of the existing packages?
I think you can achieve this when you lock the packages in your project.
just add
<lock><enable/></lock>
to your package meta.
Does this help you?
--
Adrian Schroeter