diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-10-18 14:24:17 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-11-04 11:26:48 +0000 |
commit | 596f6b579788af92bae28e93c919e33f9b7fa3bd (patch) | |
tree | c651b37a63ec9bde1ebc6025b03db3b60ebd5522 /src/buildstream/_artifactelement.py | |
parent | 135f278c9f461e49817c5e69cbcbd862aaf88e63 (diff) | |
download | buildstream-596f6b579788af92bae28e93c919e33f9b7fa3bd.tar.gz |
Only run `element.__update_source_state` when necessary
Diffstat (limited to 'src/buildstream/_artifactelement.py')
-rw-r--r-- | src/buildstream/_artifactelement.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/_artifactelement.py b/src/buildstream/_artifactelement.py index 48c3d1769..0baf634b4 100644 --- a/src/buildstream/_artifactelement.py +++ b/src/buildstream/_artifactelement.py @@ -80,6 +80,7 @@ class ArtifactElement(Element): artifact_element = ArtifactElement(context, ref) # XXX: We need to call update state as it is responsible for # initialising an Element/ArtifactElement's Artifact (__artifact) + artifact_element._update_source_state() artifact_element._update_state() cls.__instantiated_artifacts[ref] = artifact_element |