From 0884591082c32e384dc3ca48ee871309ef613202 Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Sun, 21 Mar 2010 12:50:40 +0000 Subject: [PATCH] debian/bin/buildcheck.py: Support module ignore matching. svn path=/dists/sid/linux-2.6/; revision=15441 --- debian/bin/buildcheck.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/bin/buildcheck.py b/debian/bin/buildcheck.py index 29b503436..273f32c0a 100755 --- a/debian/bin/buildcheck.py +++ b/debian/bin/buildcheck.py @@ -136,6 +136,11 @@ class CheckAbi(object): type, ignore = ignore.split(':') if type == 'symbolmatch': filtered.update(fnmatch.filter(symbols.iterkeys(), ignore)) + elif type == 'module': + for symbol in symbols.itervalues(): + symbol = symbol.symbol + if symbol.module == ignore: + filtered.add(symbol.name) else: raise NotImplementedError return filtered