diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-25T13·42+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-25T17·18+0200 |
commit | 9eba2c39451ba8757295a0f47b7cf992ec4c3af8 (patch) | |
tree | bbf93c62f3e7ddaac4aa867ebfbeaac840ce5fda /src/libstore | |
parent | 697e0b3a6fbfa3f0b1da29b0cedb4a2b9ee37520 (diff) |
Fix "path is not in the Nix store" during GC
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 9184620613d3..8fc582f4c20d 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; } |