cooker: Avoid sideeffects for autorev from getAllKeysWithFlags
PATCH 1/1 cooker: Avoid sideeffects for autorev from getAllKeysWithFlags
If we expand the variable AUTOREV in OE-Core, it triggers side effects in the fetcher. The situation isn't ideal and needs improvement but this breaks and is blocking enabling BB_DEFAULT_EVENTLOG.
Hack around the issue for now so we unblock things until we can work out a better plan for how to improve AUTOREV support.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/cooker.py | 7 +++++++ 1 file changed, 7 insertions(+)
lib/bb/cooker.py +7 -0
@@ -1557,7 +1557,13 @@ class BBCooker: def getAllKeysWithFlags(self, flaglist): + def dummy_autorev(d): + return + dump = {} + # Horrible but for now we need to avoid any sideeffects of autorev being called + saved = bb.fetch2.get_autorev + bb.fetch2.get_autorev = dummy_autorev for k in self.data.keys(): try: expand = True
@@ -1577,6 +1583,7 @@ class BBCooker: dump[k][d] = None except Exception as e: print(e) + bb.fetch2.get_autorev = saved return dump
Signature · 1 line
2.39.2