* Properly keep packages during upgrades.
This commit is contained in:
parent
6d1a1191b0
commit
6da6fbfbe9
1 changed files with 4 additions and 1 deletions
|
@ -567,7 +567,10 @@ static void upgradeDerivations(Globals & globals,
|
|||
DrvName drvName(i->name);
|
||||
|
||||
MetaInfo meta = i->queryMetaInfo(globals.state);
|
||||
if (meta["keep"] == "true") continue;
|
||||
if (meta["keep"] == "true") {
|
||||
newElems.push_back(*i);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Find the derivation in the input Nix expression with the
|
||||
same name that satisfies the version constraints specified
|
||||
|
|
Loading…
Reference in a new issue