debian/bin/buildcheck.py: Support module ignore matching.

svn path=/dists/sid/linux-2.6/; revision=15441
This commit is contained in:
Bastian Blank 2010-03-21 12:50:40 +00:00
parent d3bbe78347
commit 0884591082
1 changed files with 5 additions and 0 deletions

View File

@ -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