diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-12-13 15:48:03 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2019-12-13 15:48:03 +0000 |
commit | 2fc5a5cfbcf5c16407914849ea1a99bfdb71cb0e (patch) | |
tree | f20a2ffd74ea5c9947bcd0c9c21903b31fbbf373 | |
parent | 2972ae904325e71c849fc2a3ac3391134615f0a8 (diff) | |
parent | 7da8a23d28eb57e717478647df213351cbe54fa0 (diff) | |
download | buildstream-2fc5a5cfbcf5c16407914849ea1a99bfdb71cb0e.tar.gz |
Merge branch 'bschubert/cleanup-element-fetch' into 'master'
Small cleanups in `element._fetch`
See merge request BuildStream/buildstream!1768
-rw-r--r-- | src/buildstream/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 106460b9a..ee6b90ce7 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2096,9 +2096,9 @@ class Element(Plugin): # def _fetch(self, fetch_original=False): previous_sources = [] - sources = self.__sources fetch_needed = False - if sources and not fetch_original: + + if self.__sources and not fetch_original: for source in self.__sources: if self.__sourcecache.contains(source): continue @@ -2118,7 +2118,7 @@ class Element(Plugin): source._fetch(previous_sources) previous_sources.append(source) - self.__cache_sources() + self.__cache_sources() # _calculate_cache_key(): # |