diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07T15·08+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07T15·08+0200 |
commit | bba3f0a308cceb56bad4aa1efe13927360ae463f (patch) | |
tree | 7c778faa9df588ff0b232f37d0ca797ab8f25daa /src/libstore/local-store.cc | |
parent | 33c3f91885429b60cab551e761f297a640aff7d5 (diff) |
If fallback is enabled, temporarily disable substituters after a failure
Otherwise, we just keep asking the substituter for other .narinfo files, which can take a very long time due to retries/timeouts.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 5e392c237e88..197b9d78995b 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -880,6 +880,7 @@ void LocalStore::querySubstitutablePathInfos(const PathSet & paths, narInfo ? narInfo->fileSize : 0, info->narSize}; } catch (InvalidPath) { + } catch (SubstituterDisabled) { } catch (Error & e) { if (settings.tryFallback) printError(e.what()); |