Jürg Billeter pushed to branch master at BuildStream / buildstream
Commits:
1 changed file:
Changes:
... | ... | @@ -365,7 +365,10 @@ class CASCache(ArtifactCache): |
365 | 365 |
Raises: ArtifactError if no push remotes are configured.
|
366 | 366 |
"""
|
367 | 367 |
|
368 |
- push_remotes = [r for r in self._remotes[project] if r.spec.push]
|
|
368 |
+ if self._has_push_remotes:
|
|
369 |
+ push_remotes = [r for r in self._remotes[project] if r.spec.push]
|
|
370 |
+ else:
|
|
371 |
+ push_remotes = []
|
|
369 | 372 |
|
370 | 373 |
if not push_remotes:
|
371 | 374 |
raise ArtifactError("CASCache: push_directory was called, but no remote artifact " +
|