mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-02 10:26:16 +02:00
* When finding live paths, the deriver need not be valid.
This commit is contained in:
parent
ebe342c9c1
commit
298dd487bb
1 changed files with 4 additions and 1 deletions
|
@ -333,8 +333,11 @@ void collectGarbage(GCAction action, PathSet & result)
|
||||||
for (PathSet::iterator i = livePaths.begin();
|
for (PathSet::iterator i = livePaths.begin();
|
||||||
i != livePaths.end(); ++i)
|
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);
|
Path deriver = queryDeriver(noTxn, *i);
|
||||||
if (deriver != "")
|
if (deriver != "" && isValidPath(deriver))
|
||||||
computeFSClosure(deriver, livePaths);
|
computeFSClosure(deriver, livePaths);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue