Skip to contentSkip to conversation

using same logic for overrides

PATCH In review zzs 2 participants 2 messages Sep 30, 2020 – Nov 24, 2022

lore
Share & tools
lore

zzs

author
#0 lore raw

PATCH 1/1 using same logic for overrides

From: 张忠山 <[email protected]>

---
 bitbake/lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/data_smart.py +1 -1
index 7f1b6dcb4f..7689987f05 100644
@@ -648,7 +648,7 @@ class DataSmart(MutableMapping):
         if '_' in var:
             override = var[var.rfind('_')+1:]
             shortvar = var[:var.rfind('_')]
-            while override and override.islower():
+            while override and __override_regexp__.match(override):
                 try:
                     if shortvar in self.overridedata:
                         # Force CoW by recreating the list first
Signature · 1 line
2.28.0
#1 lore raw
Quoted 12 lines · zzs

From: 张忠山 <[email protected]>

---
 bitbake/lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/data_smart.py +0 -0
index 7f1b6dcb4f..7689987f05 100644

bitbake/lib/bb/data_smart.py class DataSmart(MutableMapping): · line 654

Quoted 8 lines
bitbake/lib/bb/data_smart.py +1 -1
@@ -648,7 +648,7 @@ class DataSmart(MutableMapping):
         if '_' in var:
             override = var[var.rfind('_')+1:]
             shortvar = var[:var.rfind('_')]
-            while override and override.islower():
+            while override and __override_regexp__.match(override):
                 try:
                     if shortvar in self.overridedata:
                         # Force CoW by recreating the list first

This looks like it is against dunfell and not master? I'll tweak it to apply there though, thanks.

Cheers,

Richard