mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
* When finding live paths, the deriver need not be valid.
This commit is contained in:
parent
ebe342c9c1
commit
298dd487bb
@ -333,8 +333,11 @@ void collectGarbage(GCAction action, PathSet & result)
|
||||
for (PathSet::iterator i = livePaths.begin();
|
||||
i != livePaths.end(); ++i)
|
||||
{
|
||||
/* Note that the deriver need not be valid (e.g., if we
|
||||
previously ran the collector with `gcKeepDerivations'
|
||||
turned off). */
|
||||
Path deriver = queryDeriver(noTxn, *i);
|
||||
if (deriver != "")
|
||||
if (deriver != "" && isValidPath(deriver))
|
||||
computeFSClosure(deriver, livePaths);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user