From da7e038bb2b256b7e880f9fcd86f6bf1403cb986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Thu, 30 Aug 2018 15:51:36 +0200 Subject: 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...") --- buildstream/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit v1.2.1