diff options
Diffstat (limited to 'src/buildstream')
-rw-r--r-- | src/buildstream/element.py | 2 | ||||
-rw-r--r-- | src/buildstream/source.py | 14 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index dac6eb1f2..f086fd620 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2158,7 +2158,7 @@ class Element(Plugin): } def __get_source_entry(_source): - return {'key': _source._get_unique_key(True), + return {'key': _source._get_unique_key(), 'name': _source._get_source_name()} self.__cache_key_dict['sources'] = \ diff --git a/src/buildstream/source.py b/src/buildstream/source.py index a2b566a05..a6f7535ac 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -775,16 +775,10 @@ class Source(Plugin): # # Wrapper for get_unique_key() api # - # Args: - # include_source (bool): Whether to include the delegated source key - # - def _get_unique_key(self, include_source): + def _get_unique_key(self): key = {} - key['directory'] = self.__directory - if include_source: - key['unique'] = self.get_unique_key() # pylint: disable=assignment-from-no-return - + key['unique'] = self.get_unique_key() # pylint: disable=assignment-from-no-return return key # _project_refs(): @@ -1074,11 +1068,11 @@ class Source(Plugin): return None def _generate_key(self, previous_sources): - keys = [self._get_unique_key(True)] + keys = [self._get_unique_key()] if self.BST_REQUIRES_PREVIOUS_SOURCES_STAGE: for previous_source in previous_sources: - keys.append(previous_source._get_unique_key(True)) + keys.append(previous_source._get_unique_key()) self.__key = generate_key(keys) |