diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-07-11 22:49:13 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-07-11 22:49:13 +0900 |
commit | 25af9096435e8aec521609da7cd135e041e93db4 (patch) | |
tree | 989161fb2896b650fa5c7ac83c85b4ad3130f0ab | |
parent | f4a1a7997a7bbe8c23e72eab916684e625512aab (diff) | |
download | buildstream-25af9096435e8aec521609da7cd135e041e93db4.tar.gz |
element.py: Element._push() returns boolean, indicating whether an upload was needed
-rw-r--r-- | buildstream/element.py | 6 |
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() # |