summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-11 22:49:13 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-11 22:49:13 +0900
commit25af9096435e8aec521609da7cd135e041e93db4 (patch)
tree989161fb2896b650fa5c7ac83c85b4ad3130f0ab
parentf4a1a7997a7bbe8c23e72eab916684e625512aab (diff)
downloadbuildstream-25af9096435e8aec521609da7cd135e041e93db4.tar.gz
element.py: Element._push() returns boolean, indicating whether an upload was needed
-rw-r--r--buildstream/element.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index c16bb996a..8ef14f84c 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -936,11 +936,15 @@ class Element(Plugin):
#
# Push locally cached artifact to remote artifact repository.
#
+ # Returns:
+ # (bool): True if the remote was updated, False if it already existed
+ # and no updated was required
+ #
def _push(self):
self._assert_cached()
with self.timed_activity("Pushing Artifact"):
- self.__artifacts.push(self)
+ return self.__artifacts.push(self)
# _logfile()
#