diff options
author | Jürg Billeter <j@bitron.ch> | 2018-08-30 15:51:36 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-24 14:58:55 +0100 |
commit | da7e038bb2b256b7e880f9fcd86f6bf1403cb986 (patch) | |
tree | 4d36ff9c8351b9c7550f17465e246d81a17a825a | |
parent | 1b2aed400e776eb2fdb0d601cc2c98899716a6ef (diff) | |
download | buildstream-da7e038bb2b256b7e880f9fcd86f6bf1403cb986.tar.gz |
element.py: Fix cache check in non-strict mode
The behavior of __assert_cached() was changed when the keystrength
parameter was introduced. This restores the previous behavior.
Fixes #607.
Fixes: 3d308894 ("element.py: Cache the result of checking whether...")
-rw-r--r-- | buildstream/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 602bf01cc..f9e3c191b 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -2084,7 +2084,7 @@ class Element(Plugin): # # Raises an error if the artifact is not cached. # - def __assert_cached(self, keystrength=_KeyStrength.STRONG): + def __assert_cached(self, keystrength=None): assert self.__is_cached(keystrength=keystrength), "{}: Missing artifact {}".format( self, self._get_brief_display_key()) |