aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-02 14:25:07 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-02 16:02:48 +0200
commit064816ab98e7a230b6e9f4071353f5172e70cf03 (patch)
treeeb781b84958ee558a10777d8a92833764ae1ba92 /src/libstore/local-store.cc
parent812c0dfbe24c8fe93992f77abbf1e5a975ea42f4 (diff)
Respect build-use-substitutes
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index e1ff94d2c..1ffacc5b0 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -780,6 +780,7 @@ Path LocalStore::queryPathFromHashPart(const string & hashPart)
PathSet LocalStore::querySubstitutablePaths(const PathSet & paths)
{
+ if (!settings.useSubstitutes) return PathSet();
PathSet res;
for (auto & sub : getDefaultSubstituters()) {
if (sub->storeDir != storeDir) continue;
@@ -799,6 +800,7 @@ PathSet LocalStore::querySubstitutablePaths(const PathSet & paths)
void LocalStore::querySubstitutablePathInfos(const PathSet & paths,
SubstitutablePathInfos & infos)
{
+ if (!settings.useSubstitutes) return;
for (auto & sub : getDefaultSubstituters()) {
if (sub->storeDir != storeDir) continue;
for (auto & path : paths) {