From 94817d77d92f24e247b284bb1fd21269a7bf15d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 22 Feb 2016 17:21:39 +0100 Subject: [PATCH] BinaryCacheStore: Respect build-use-substitutes --- src/hydra-queue-runner/binary-cache-store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/binary-cache-store.cc b/src/hydra-queue-runner/binary-cache-store.cc index d5c4d679..c76670a5 100644 --- a/src/hydra-queue-runner/binary-cache-store.cc +++ b/src/hydra-queue-runner/binary-cache-store.cc @@ -252,7 +252,8 @@ void BinaryCacheStore::querySubstitutablePathInfos(const PathSet & paths, infos.emplace(storePath, sub); } - //(*localStore)->querySubstitutablePathInfos(left, infos); + if (settings.useSubstitutes) + (*localStore)->querySubstitutablePathInfos(left, infos); } void BinaryCacheStore::buildPaths(const PathSet & paths, BuildMode buildMode)