diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-09 14:58:10 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-09 14:58:10 +0100 |
commit | f581ce0b0cb86670db2b806f98ac0ec368b8cdc1 (patch) | |
tree | 631afca691d8f45a45f6db6bbac72d8e0e4da8ee | |
parent | 91ef4d9a81827177963bcf7708af3a46217fd0e9 (diff) |
Don't start copy-from-other-stores if $NIX_OTHER_STORES is unset
Slight optimisation.
-rw-r--r-- | src/libstore/globals.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 9b22d5450..7b881d1d2 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -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 |