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

View file

@ -61,6 +61,7 @@ void Settings::processEnvironment()
string subs = getEnv("NIX_SUBSTITUTERS", "default");
if (subs == "default") {
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");