From: Carsten Schoenert Date: Fri, 12 Jan 2018 17:08:14 +0000 (+0100) Subject: shellutil.py: ignore tilde '~' as special character X-Git-Tag: archive/raspbian/1%60.7.1-1+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5985b29220cc108f06b6209f1fa200155c60c7cc;p=thunderbird.git shellutil.py: ignore tilde '~' as special character 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 --- diff --git a/python/mozbuild/mozbuild/shellutil.py b/python/mozbuild/mozbuild/shellutil.py index 185a970ee5..580d778739 100644 --- a/python/mozbuild/mozbuild/shellutil.py +++ b/python/mozbuild/mozbuild/shellutil.py @@ -26,7 +26,7 @@ UNQUOTED_TOKENS_RE = _tokens2re( whitespace=r'[\t\r\n ]+', quote=r'[\'"]', comment='#', - special=r'[<>&|`~(){}$;\*\?]', + special=r'[<>&|`(){}$;\*\?]', backslashed=r'\\[^\\]', )