mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
Make sure references are empty for store path replacing
also copy info2 instead of casting
This commit is contained in:
parent
8974755d19
commit
be50de1142
3 changed files with 6 additions and 6 deletions
|
|
@ -863,7 +863,7 @@ void LocalStore::querySubstitutablePathInfos(const StorePathSet & paths,
|
|||
try {
|
||||
auto info = sub->queryPathInfo(subPath);
|
||||
|
||||
if (sub->storeDir != storeDir && !info->isContentAddressed(*sub))
|
||||
if (sub->storeDir != storeDir && !(info->isContentAddressed(*sub) && info->references.empty()))
|
||||
continue;
|
||||
|
||||
auto narInfo = std::dynamic_pointer_cast<const NarInfo>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue