diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-07-11 15:55:03 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-16 09:13:39 +0000 |
commit | 452fdce3d0f80e1fec671237c97d7e43b0773d5f (patch) | |
tree | 79fe8aed5284958bec1b12d994007dd937358cef /src/buildstream/_pipeline.py | |
parent | 027750df1733b34fc8aabce8f3c7dbfca4fc8ec8 (diff) | |
download | buildstream-452fdce3d0f80e1fec671237c97d7e43b0773d5f.tar.gz |
element.py: Cache whether we've resolved the initial state
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r-- | src/buildstream/_pipeline.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index a9d88befd..af60ffde5 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -131,7 +131,8 @@ class Pipeline(): # greater value. for element in self.dependencies(targets, Scope.ALL): # Determine initial element state. - element._update_state() + if not element._resolved_initial_state: + element._update_state() # We may already have Elements which are cached and have their runtimes # cached, if this is the case, we should immediately notify their reverse |