debian/bin/abicheck.py, debian/lib/python/debian_linux/abi.py:

Remove own type of abi files.

svn path=/dists/trunk/linux-2.6/; revision=6994
This commit is contained in:
Bastian Blank 2006-07-13 10:53:58 +00:00
parent c104019d67
commit 52102e6544
2 changed files with 3 additions and 18 deletions

View File

@ -17,8 +17,7 @@ class checker(object):
def __call__(self, out):
ret = 0
new = symbols()
new.read_kernel(file(self.filename_new))
new = symbols(self.filename_new)
try:
ref = symbols(self.filename_ref)
except IOError:

View File

@ -37,21 +37,7 @@ class symbols(object):
self.symbols = {}
for line in file.readlines():
symbol, module, version = line.strip().split()
symbols = self.modules.get(module, {})
symbols[symbol] = version
self.modules[module] = symbols
if self.symbols.has_key(symbol):
pass
self.symbols[symbol] = module, version
def read_kernel(self, file):
self.modules = {}
self.symbols = {}
for line in file.readlines():
version, symbol, module = line.strip().split('\t')
version, symbol, module = line.strip().split()
symbols = self.modules.get(module, {})
symbols[symbol] = version
@ -65,7 +51,7 @@ class symbols(object):
symbols.sort()
for symbol, i in symbols:
module, version = i
file.write("%s %s %s\n" % (symbol, module, version))
file.write("%s %s %s\n" % (version, symbol, module))
def write_human(self, file):
modules = self.modules.keys()