forked from lix-project/lix
* Properly keep packages during upgrades.
This commit is contained in:
parent
6d1a1191b0
commit
6da6fbfbe9
|
@ -567,7 +567,10 @@ static void upgradeDerivations(Globals & globals,
|
||||||
DrvName drvName(i->name);
|
DrvName drvName(i->name);
|
||||||
|
|
||||||
MetaInfo meta = i->queryMetaInfo(globals.state);
|
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
|
/* Find the derivation in the input Nix expression with the
|
||||||
same name that satisfies the version constraints specified
|
same name that satisfies the version constraints specified
|
||||||
|
|
Loading…
Reference in a new issue