From 5872c320602bd9b872d48e525c3b8b4a2ec8346a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 13 Oct 2017 01:39:24 +0100 Subject: [PATCH] debian/bin/buildcheck.py: Interpret ABI patterns more conventionally Currently '*' and '**' match at least one character. Change them to match zero or more characters, as in shell patterns. '*' matches anything but '!', but that has no special meaning in symbol names or module filenames. Change it to match anything but '/', as in shell patterns. --- debian/bin/buildcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/bin/buildcheck.py b/debian/bin/buildcheck.py index 6a50978aa..eba717fa2 100755 --- a/debian/bin/buildcheck.py +++ b/debian/bin/buildcheck.py @@ -139,9 +139,9 @@ class CheckAbi(object): ret = [] for i in re.split(r'(\*\*?)', pattern): if i == '*': - ret.append(r'[^!]+') + ret.append(r'[^/]*') elif i == '**': - ret.append(r'.+') + ret.append(r'.*') elif i: ret.append(re.escape(i)) return re.compile('^' + ''.join(ret) + '$')