shellutil.py: ignore tilde '~' as special character
authorCarsten Schoenert <c.schoenert@t-online.de>
Fri, 12 Jan 2018 17:08:14 +0000 (18:08 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 9 Jul 2019 20:09:04 +0000 (21:09 +0100)
Currently we don't need the tilde sign defined as a special character
inside the Python wrappers around the autotools files, it's not used any
there and breaks the build of Debian beta versions which uses '~' to
mark the Debian version as 'smaller than'.

Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name shellutil.py-ignore-tilde-as-special-character.patch

python/mozbuild/mozbuild/shellutil.py

index 185a970ee53361a6868a5760c4765df23022053d..580d778739b0e4b8860c5e93a5bd38ddc82da1de 100644 (file)
@@ -26,7 +26,7 @@ UNQUOTED_TOKENS_RE = _tokens2re(
   whitespace=r'[\t\r\n ]+',
   quote=r'[\'"]',
   comment='#',
-  special=r'[<>&|`~(){}$;\*\?]',
+  special=r'[<>&|`(){}$;\*\?]',
   backslashed=r'\\[^\\]',
 )