summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
author张忠山 <zzs213@126.com>2020-09-30 11:11:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-29 10:25:51 +0000
commitbdc821a4c34464a56d8a934cea23399790288e83 (patch)
treee3726e4b82e7207bd3e47bf5733d5a963c89318d /bitbake/lib/bb/data_smart.py
parenta5c985ee50b9be8502fe407abc592c8767f2b5a0 (diff)
downloadpoky-bdc821a4c34464a56d8a934cea23399790288e83.tar.gz
bitbake: data_smart: Use regex consistently for override matching
One section of the code is enforcing lowercase overrides, the other is allowing numeric characters. We should be consistent with one or the other. (Bitbake rev: df5b3b841fd8d6a652d643e9ae2bba09d60043e0) Signed-off-by: 张忠山 <zzs213@126.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index fd05451971..246c446e4a 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -720,7 +720,7 @@ class DataSmart(MutableMapping):
720 if ':' in var: 720 if ':' in var:
721 override = var[var.rfind(':')+1:] 721 override = var[var.rfind(':')+1:]
722 shortvar = var[:var.rfind(':')] 722 shortvar = var[:var.rfind(':')]
723 while override and override.islower(): 723 while override and __override_regexp__.match(override):
724 try: 724 try:
725 if shortvar in self.overridedata: 725 if shortvar in self.overridedata:
726 # Force CoW by recreating the list first 726 # Force CoW by recreating the list first