diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-03-21 22:53:18 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-03-21 22:53:18 +0900 |
commit | c36c545d2d86966bc24bf8ad391a3faa497cbda9 (patch) | |
tree | 805f14ff5a7d4a44948c34b5730f0d458c4cd420 /buildstream | |
parent | 6a5e8446e8bd8cdb085eba4546db0e8caaa3941e (diff) | |
download | buildstream-c36c545d2d86966bc24bf8ad391a3faa497cbda9.tar.gz |
source.py: Source._save_ref() should return saved state
So we can report proper processed status from tracking queues
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/source.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index bf7fa45f3..0a5c26cd1 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -529,6 +529,9 @@ class Source(Plugin): # Args: # new_ref (smth): The new reference to save # + # Returns: + # (bool): Whether the ref has changed + # # Raises: # (SourceError): In the case we encounter errors saving a file to disk # @@ -591,6 +594,8 @@ class Source(Plugin): else: self.warn("{}: Not persisting new reference in junctioned project".format(self)) + return changed + # Wrapper for track() # def _track(self): |