diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index 1a4d8ee58..3eea5c0c5 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -485,7 +485,7 @@ static void installDerivations(Globals & globals, MetaInfo meta = i->queryMetaInfo(globals.state); if (!globals.preserveInstalled && newNames.find(drvName.name) != newNames.end() && - meta["keep"] == "true") + meta["keep"] != "true") printMsg(lvlInfo, format("replacing old `%1%'") % i->name); else