mirror of
https://github.com/NixOS/nix
synced 2025-07-05 20:41:47 +02:00
Make ValidPathInfo
have plain StorePathSet
references like before
This change can wait for another PR.
This commit is contained in:
parent
056cc1c1b9
commit
b3d91239ae
24 changed files with 109 additions and 166 deletions
|
@ -28,8 +28,9 @@ std::map<StorePath, StorePath> makeContentAddressed(
|
|||
StringMap rewrites;
|
||||
|
||||
StoreReferences refs;
|
||||
refs.self = oldInfo->references.self;
|
||||
for (auto & ref : oldInfo->references.others) {
|
||||
for (auto & ref : oldInfo->references) {
|
||||
if (ref == path)
|
||||
refs.self = true;
|
||||
auto i = remappings.find(ref);
|
||||
auto replacement = i != remappings.end() ? i->second : ref;
|
||||
// FIXME: warn about unremapped paths?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue