aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-25 15:42:55 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-25 19:18:45 +0200
commit9eba2c39451ba8757295a0f47b7cf992ec4c3af8 (patch)
treebbf93c62f3e7ddaac4aa867ebfbeaac840ce5fda /src/libstore
parent697e0b3a6fbfa3f0b1da29b0cedb4a2b9ee37520 (diff)
Fix "path is not in the Nix store" during GC
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 918462061..8fc582f4c 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -305,7 +305,7 @@ void LocalStore::findRoots(const Path & path, unsigned char type, Roots & roots)
else if (type == DT_REG) {
Path storePath = settings.nixStore + "/" + baseNameOf(path);
- if (isValidPath(storePath))
+ if (isStorePath(storePath) && isValidPath(storePath))
roots[path] = storePath;
}