]> code.ossystems Code Review - openembedded-core.git/commitdiff
convert-overrides.py: allow dots before override in vars_re and shortvars_re
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 4 Aug 2021 14:24:18 +0000 (16:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Aug 2021 07:51:17 +0000 (08:51 +0100)
e.g. VIRTUAL-RUNTIME_com.webos.service.flowmanager_armv4 weren't replaced
with VIRTUAL-RUNTIME_com.webos.service.flowmanager:armv4 or when package
name contains a dot like in:
RDEPENDS:gstreamer1.0-meta-base:remove

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/convert-overrides.py

index 8cdcf208bc116151a1fc6686135b8129a9a36e1f..e4a310d1d6a36d073348260f06ef25ae7983c297 100755 (executable)
@@ -69,11 +69,11 @@ packagevars = packagevars + imagevars
 
 vars_re = {}
 for exp in vars:
-    vars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}]+)_' + exp), r"\1:" + exp)
+    vars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}\.]+)_' + exp), r"\1:" + exp)
 
 shortvars_re = {}
 for exp in shortvars:
-    shortvars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}]+)_' + exp + '([\(\'"\s:])'), r"\1:" + exp + r"\3")
+    shortvars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}\.]+)_' + exp + '([\(\'"\s:])'), r"\1:" + exp + r"\3")
 
 package_re = {}
 for exp in packagevars:
@@ -122,7 +122,7 @@ def processfile(fn):
         pass
 
 ourname = os.path.basename(sys.argv[0])
-ourversion = "0.9.2"
+ourversion = "0.9.3"
 
 if os.path.isfile(sys.argv[1]):
     processfile(sys.argv[1])