mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Short-circuit querying substituters on success
This commit is contained in:
parent
e277c0c479
commit
12f50b6510
1 changed files with 4 additions and 0 deletions
|
@ -1076,6 +1076,10 @@ void LocalStore::querySubstitutablePathInfos(const StorePathCAMap & paths, Subst
|
|||
if (!settings.useSubstitutes) return;
|
||||
for (auto & sub : getDefaultSubstituters()) {
|
||||
for (auto & path : paths) {
|
||||
if (infos.find(path.first) != infos.end())
|
||||
// choose first succeeding substituter
|
||||
continue;
|
||||
|
||||
auto subPath(path.first);
|
||||
|
||||
// recompute store path so that we can use a different store root
|
||||
|
|
Loading…
Reference in a new issue