summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-10 13:04:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-11 06:56:01 +0000
commit9a179022016de3bb02a176bf502fa26b0b08a900 (patch)
tree98b8273ad3e6ed1c04a69defaa19dd1c4bed0dd8 /bitbake
parentaae4f55d1b55764d5919174add728d15a33641f1 (diff)
downloadpoky-9a179022016de3bb02a176bf502fa26b0b08a900.tar.gz
bitbake: cooker: Fix environment history printing
bitbake -e is not showing variable history correctly for all variables. The issue was triggered by the change to knotty to default to enabling variable tracking in the base datastore but that exposed another issue. The real problem is that calling reset() inside cooker reverts to the data tracking enabled by the UI for the base datastore, then turns off tracking. In the case of the environment printing code, it needs it to be left on. Tweak the code to ensure data store tracking really is enabled. The code here is clearly a bit of a mess but this at least fixes a clear regression until more invasive improvements can be made. (Bitbake rev: 9596bffc9903f023d1cc97ce531ddb1cf010c4d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 6996e62375..f79dc2770d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -555,6 +555,8 @@ class BBCooker:
555 if not orig_tracking: 555 if not orig_tracking:
556 self.enableDataTracking() 556 self.enableDataTracking()
557 self.reset() 557 self.reset()
558 # reset() resets to the UI requested value so we have to redo this
559 self.enableDataTracking()
558 560
559 def mc_base(p): 561 def mc_base(p):
560 if p.startswith('mc:'): 562 if p.startswith('mc:'):