mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Fix "path is not in the Nix store" during GC
This commit is contained in:
parent
697e0b3a6f
commit
9eba2c3945
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue