[linux] 01/02: debian/bin/buildcheck.py: Interpret ABI patterns more conventionally

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Fri Oct 13 00:44:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux.

commit 5872c320602bd9b872d48e525c3b8b4a2ec8346a
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Fri Oct 13 01:39:24 2017 +0100

    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 6a50978..eba717f 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) + '$')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list