* Properly keep packages during upgrades.

This commit is contained in:
Eelco Dolstra 2007-07-05 20:33:04 +00:00
parent 6d1a1191b0
commit 6da6fbfbe9

View file

@ -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