summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-21 22:30:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-23 12:06:06 +0000
commit65bd1b3bf7084b82b512307ff043c29ea07fc915 (patch)
treed444afe06ffa997074a40cbd7313ac45d7105110 /bitbake/lib/bb/cooker.py
parent6ca541175e1915d3af6687490609edbb3d9eaad1 (diff)
downloadpoky-65bd1b3bf7084b82b512307ff043c29ea07fc915.tar.gz
bitbake: 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. (Bitbake rev: cb9b6530f3d12c56a8b48847af2e7461924205d2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9f84030962..d658db9bd8 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1557,7 +1557,13 @@ class BBCooker:
1557 1557
1558 1558
1559 def getAllKeysWithFlags(self, flaglist): 1559 def getAllKeysWithFlags(self, flaglist):
1560 def dummy_autorev(d):
1561 return
1562
1560 dump = {} 1563 dump = {}
1564 # Horrible but for now we need to avoid any sideeffects of autorev being called
1565 saved = bb.fetch2.get_autorev
1566 bb.fetch2.get_autorev = dummy_autorev
1561 for k in self.data.keys(): 1567 for k in self.data.keys():
1562 try: 1568 try:
1563 expand = True 1569 expand = True
@@ -1577,6 +1583,7 @@ class BBCooker:
1577 dump[k][d] = None 1583 dump[k][d] = None
1578 except Exception as e: 1584 except Exception as e:
1579 print(e) 1585 print(e)
1586 bb.fetch2.get_autorev = saved
1580 return dump 1587 return dump
1581 1588
1582 1589