From 064816ab98e7a230b6e9f4071353f5172e70cf03 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Jun 2016 14:25:07 +0200 Subject: Respect build-use-substitutes --- src/libstore/local-store.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/local-store.cc') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index e1ff94d2ce75..1ffacc5b035e 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) { -- cgit 1.4.1