mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
WIP: store separate hasValidPath bool
This commit is contained in:
parent
1722ae6ece
commit
71e4c9c505
17 changed files with 119 additions and 69 deletions
|
|
@ -62,7 +62,7 @@ void Store::exportPath(const StorePath & path, Sink & sink)
|
|||
hashAndWriteSink
|
||||
<< exportMagic
|
||||
<< printStorePath(path);
|
||||
writeStorePaths(*this, hashAndWriteSink, info->references);
|
||||
writeStorePaths(*this, hashAndWriteSink, info->referencesPossiblyToSelf());
|
||||
hashAndWriteSink
|
||||
<< (info->deriver ? printStorePath(*info->deriver) : "")
|
||||
<< 0;
|
||||
|
|
@ -88,7 +88,7 @@ StorePaths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> acces
|
|||
|
||||
//Activity act(*logger, lvlInfo, format("importing path '%s'") % info.path);
|
||||
|
||||
info.references = readStorePaths<StorePathSet>(*this, source);
|
||||
info.setReferencesPossiblyToSelf(readStorePaths<StorePathSet>(*this, source));
|
||||
|
||||
auto deriver = readString(source);
|
||||
if (deriver != "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue