Don't start copy-from-other-stores if $NIX_OTHER_STORES is unset

Slight optimisation.
This commit is contained in:
Eelco Dolstra 2012-11-09 14:58:10 +01:00
parent 91ef4d9a81
commit f581ce0b0c
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ void Settings::processEnvironment()
string subs = getEnv("NIX_SUBSTITUTERS", "default");
if (subs == "default") {
substituters.push_back(nixLibexecDir + "/nix/substituters/copy-from-other-stores.pl");
if (getEnv("NIX_OTHER_STORES") != "")
substituters.push_back(nixLibexecDir + "/nix/substituters/copy-from-other-stores.pl");
substituters.push_back(nixLibexecDir + "/nix/substituters/download-using-manifests.pl");
substituters.push_back(nixLibexecDir + "/nix/substituters/download-from-binary-cache.pl");
} else