From 383ade4e3ce0043f8202b1692df6ad5c9edb15cc Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 15 Feb 2022 15:06:11 +0000 Subject: bitbake: data_smart: Add hasOverrides method to public datastore API There are some cases where the metadata needs to check if a variable has any overrides set, even if they are currently inactive. That code currently pokes into datastore internals. Add API instead to replace and avoid that. (Bitbake rev: c885e5542dcf760b8fc5881e385abb4a10020874) Signed-off-by: Richard Purdie --- bitbake/lib/bb/data_smart.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/data_smart.py') diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 242476be0e..cb2d4b620f 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -488,6 +488,8 @@ class DataSmart(MutableMapping): else: self.initVar(var) + def hasOverrides(self, var): + return var in self.overridedata def setVar(self, var, value, **loginfo): #print("var=" + str(var) + " val=" + str(value)) -- cgit v1.2.3-54-g00ecf