diff options
-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 e4a310d1d6..4d41a4c475 100755 --- a/scripts/contrib/convert-overrides.py +++ b/scripts/contrib/convert-overrides.py | |||
@@ -69,15 +69,15 @@ 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: |
80 | package_re[exp] = (re.compile('(^|[\'"\s\-\+]+)' + exp + '_' + '([$a-z"\'\s%\[<{\\\*].)'), r"\1" + exp + r":\2") | 80 | package_re[exp] = (re.compile('(^|[#\'"\s\-\+]+)' + exp + '_' + '([$a-z"\'\s%\[<{\\\*].)'), r"\1" + exp + r":\2") |
81 | 81 | ||
82 | # Other substitutions to make | 82 | # Other substitutions to make |
83 | subs = { | 83 | subs = { |