about summary refs log tree commit diff
path: root/src/nix-env
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index 1a4d8ee5877d..3eea5c0c55e4 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