mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
Fix storeDir != storeDir condition
this needs to only continue if the path replacement fails.
This commit is contained in:
parent
3e3eaa90dd
commit
11c97070f3
1 changed files with 3 additions and 3 deletions
|
@ -866,12 +866,12 @@ void LocalStore::querySubstitutablePathInfos(const StorePathSet & paths,
|
||||||
auto info = sub->queryPathInfo(path);
|
auto info = sub->queryPathInfo(path);
|
||||||
|
|
||||||
auto ca = pathsCA.find(printStorePath(path));
|
auto ca = pathsCA.find(printStorePath(path));
|
||||||
if (sub->storeDir != storeDir && info->references.empty() && ca != pathsCA.end()) {
|
if (info->references.empty() && ca != pathsCA.end()) {
|
||||||
if (!hasPrefix(ca->second, "fixed:"))
|
if (!hasPrefix(ca->second, "fixed:"))
|
||||||
continue;
|
continue;
|
||||||
// recompute store path so that we can use a fixed output ca
|
// recompute store path so that we can use a different store path
|
||||||
path = sub->makeStorePath("output:out", hashString(htSHA256, ca->second), path.name());
|
path = sub->makeStorePath("output:out", hashString(htSHA256, ca->second), path.name());
|
||||||
} else continue;
|
} else if (sub->storeDir != storeDir) continue;
|
||||||
|
|
||||||
auto narInfo = std::dynamic_pointer_cast<const NarInfo>(
|
auto narInfo = std::dynamic_pointer_cast<const NarInfo>(
|
||||||
std::shared_ptr<const ValidPathInfo>(info));
|
std::shared_ptr<const ValidPathInfo>(info));
|
||||||
|
|
Loading…
Reference in a new issue