1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

* Support queryDeriver() in multi-user installations.

This commit is contained in:
Eelco Dolstra 2007-06-12 16:53:44 +00:00
parent 9d9e1c5c41
commit 6d1a1191b0
10 changed files with 42 additions and 16 deletions

View file

@ -482,7 +482,7 @@ void LocalStore::collectGarbage(GCAction action, const PathSet & pathsToDelete,
/* 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 = store->queryDeriver(*i);
if (deriver != "" && store->isValidPath(deriver))
computeFSClosure(deriver, livePaths);
}