summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-08-02 11:21:55 +0100
committerJürg Billeter <j@bitron.ch>2017-08-08 08:32:21 +0200
commitbba906f89aab831e2e8031265a0f172c5cbe068d (patch)
tree6b0fd6760bbab61a3891f7c0e5c8b5d832d8307e
parent8563bdbe8eaa20236ca619b9a446219d793f5da0 (diff)
downloadbuildstream-bba906f89aab831e2e8031265a0f172c5cbe068d.tar.gz
element.py: Allow calling _skip_push() for uncached elements
This is required when using a push queue without build queue.
-rw-r--r--buildstream/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 84cd9a577..09ead8264 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1149,7 +1149,8 @@ class Element(Plugin):
# (bool): True if this element should not be pushed
#
def _skip_push(self):
- self._assert_cached()
+ if not self._cached(recalculate=None):
+ return True
# Do not push tained artifact
if self._tainted():