summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-10-28 15:57:56 +0000
committerDarius Makovsky <traveltissues@protonmail.com>2019-10-30 10:48:48 +0000
commitc0d080f32be44df9ebe1861c823d5ab41032b87b (patch)
tree1703f1911c500c8c27fabeae74d6e6f2c1aedbfb
parent1feff0403cf3dd2f5fc8509cd70562eb6325239c (diff)
downloadbuildstream-c0d080f32be44df9ebe1861c823d5ab41032b87b.tar.gz
source.py: _get_unique_key before _stage
-rw-r--r--src/buildstream/source.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index 9698a1cf3..033ad86a4 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -1389,6 +1389,9 @@ class Source(Plugin):
# previous sources should never be in an inconsistent state
assert src.get_consistency() != Consistency.INCONSISTENT
+ if src.BST_NO_PRESTAGE_KEY:
+ src._get_unique_key()
+
if src.get_consistency() == Consistency.RESOLVED:
src._fetch(previous_sources[0:index])