Skip to contentSkip to conversation

providers: Use new override syntax when handling pn- "override"

PATCH New Peter Kjellerstedt 1 participant 1 message Aug 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 providers: Use new override syntax when handling pn- "override"

Make versionVariableMatch() support pn-foo overrides using the new override syntax.

---
 bitbake/lib/bb/providers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/providers.py +1 -1
index 516d45e4aa..8c1c31a5c5 100644
@@ -94,7 +94,7 @@ def versionVariableMatch(cfgData, keyword, pn):
 
     # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot
     # hence we do this manually rather than use OVERRIDES
-    ver = cfgData.getVar("%s_VERSION_pn-%s" % (keyword, pn))
+    ver = cfgData.getVar("%s_VERSION:pn-%s" % (keyword, pn))
     if not ver:
         ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn))
     if not ver: