1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 04:00:59 +01:00

makeValidityRegistration only supports store paths for now ....

This commit is contained in:
Wouter den Breejen 2008-02-07 00:06:04 +00:00
parent 2bf4fcb7cd
commit bffb03eae1

View file

@ -237,7 +237,7 @@ Path computeStorePathForText(const string & suffix, const string & s,
/* Return a string accepted by decodeValidPathInfo() that /* Return a string accepted by decodeValidPathInfo() that
registers the specified paths as valid. Note: it's the registers the specified paths as valid. Note: it's the
responsibility of the caller to provide a closure. */ responsibility of the caller to provide a closure. */
string makeValidityRegistration(const PathSet & paths, string makeValidityRegistration(const PathSet & paths, // TODO !!!!!!!!!!!!!!!!!!!!!! makeValidityRegistration CHECK CALLS FOR STATE PASSINGS?
bool showDerivers, bool showHash) bool showDerivers, bool showHash)
{ {
string s = ""; string s = "";
@ -252,7 +252,7 @@ string makeValidityRegistration(const PathSet & paths,
s += deriver + "\n"; s += deriver + "\n";
PathSet references; PathSet references;
store->queryReferences(*i, references); store->queryStoreReferences(*i, references, 0); //TODO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WE MAY NEED STATE???
s += (format("%1%\n") % references.size()).str(); s += (format("%1%\n") % references.size()).str();