diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-08-04 16:24:18 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-05 08:53:40 +0100 |
commit | 1c240f920907518c8982d3164205fa13e6c04f84 (patch) | |
tree | 2cd8844e6d2d9aebfeecbe843d84b26f18e051ca | |
parent | 0b3be2821d740b9109c7b70cb7123764d80ef37b (diff) | |
download | poky-1c240f920907518c8982d3164205fa13e6c04f84.tar.gz |
convert-overrides.py: allow dots before override in vars_re and shortvars_re
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
(From OE-Core rev: 41bff44bd26c09573eb3139bb6735e5ecfda18b7)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/contrib/convert-overrides.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/contrib/convert-overrides.py b/scripts/contrib/convert-overrides.py index 8cdcf208bc..e4a310d1d6 100755 --- a/scripts/contrib/convert-overrides.py +++ b/scripts/contrib/convert-overrides.py | |||
@@ -69,11 +69,11 @@ packagevars = packagevars + imagevars | |||
69 | 69 | ||
70 | vars_re = {} | 70 | vars_re = {} |
71 | for exp in vars: | 71 | for exp in vars: |
72 | vars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}]+)_' + exp), r"\1:" + exp) | 72 | vars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}\.]+)_' + exp), r"\1:" + exp) |
73 | 73 | ||
74 | shortvars_re = {} | 74 | shortvars_re = {} |
75 | for exp in shortvars: | 75 | for exp in shortvars: |
76 | shortvars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}]+)_' + exp + '([\(\'"\s:])'), r"\1:" + exp + r"\3") | 76 | shortvars_re[exp] = (re.compile('((^|[\'"\s\-\+])[A-Za-z0-9_\-:${}\.]+)_' + exp + '([\(\'"\s:])'), r"\1:" + exp + r"\3") |
77 | 77 | ||
78 | package_re = {} | 78 | package_re = {} |
79 | for exp in packagevars: | 79 | for exp in packagevars: |
@@ -122,7 +122,7 @@ def processfile(fn): | |||
122 | pass | 122 | pass |
123 | 123 | ||
124 | ourname = os.path.basename(sys.argv[0]) | 124 | ourname = os.path.basename(sys.argv[0]) |
125 | ourversion = "0.9.2" | 125 | ourversion = "0.9.3" |
126 | 126 | ||
127 | if os.path.isfile(sys.argv[1]): | 127 | if os.path.isfile(sys.argv[1]): |
128 | processfile(sys.argv[1]) | 128 | processfile(sys.argv[1]) |