diff options
-rw-r--r-- | src/buildstream/_basecache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildstream/_basecache.py b/src/buildstream/_basecache.py index c2772d02c..fc2e92456 100644 --- a/src/buildstream/_basecache.py +++ b/src/buildstream/_basecache.py @@ -161,7 +161,9 @@ class BaseCache(): def setup_remotes(self, *, use_config=False, remote_url=None): # Ensure we do not double-initialise since this can be expensive - assert not self._remotes_setup + if self._remotes_setup: + return + self._remotes_setup = True # Initialize remote caches. We allow the commandline to override |