diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-17 14:14:22 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-17 14:15:08 -0400 |
commit | be50de1142b0600afebde32130e8561e28b63b41 (patch) | |
tree | cc4087df88bca35030e1c81aa5de65a488945d99 /src/libstore/local-store.cc | |
parent | 8974755d1958824e732640f8131b0ed22ebd703b (diff) |
Make sure references are empty for store path replacing
also copy info2 instead of casting
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index d08c7dc6a..3230312c9 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -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>( |