summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-23 16:37:32 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-23 17:42:05 +0000
commitf17ef1e47cfce604bcd93373eae9646a96e9122d (patch)
tree86506501a005c29c04a5741668ba222d324341df /setup.py
parent628e9a23f8b9d14f0216f85240b5ed148a08b117 (diff)
downloadbuildstream-f17ef1e47cfce604bcd93373eae9646a96e9122d.tar.gz
Only initialize remote artifact cache connections if needed
This fixes a regression from the canonical-pull-urls branch that was just merged. The `OSTreeCache.__init__()` function was connecting to the cache, which is bad because execution would randomly freeze for several seconds when the connection was slow. We now only initialize remote connections where needed; this was already introduced in 5c2ef6d076921bc0121e61efaa7a719c34ea1912 but had regressed. I renamed the keyword arg from `fetch_remote_refs` to `use_remote_cache` because it needs to be set for any interaction with the remote cache, doesn't matter if they are fetches or pushes. The initialization stage is also moved later so that we print a message telling the user what we are up to before trying the network access.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions