From c36c545d2d86966bc24bf8ad391a3faa497cbda9 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 21 Mar 2018 22:53:18 +0900 Subject: source.py: Source._save_ref() should return saved state So we can report proper processed status from tracking queues --- buildstream/source.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'buildstream') 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): -- cgit v1.2.1