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:
parent
c104019d67
commit
52102e6544
|
@ -17,8 +17,7 @@ class checker(object):
|
||||||
def __call__(self, out):
|
def __call__(self, out):
|
||||||
ret = 0
|
ret = 0
|
||||||
|
|
||||||
new = symbols()
|
new = symbols(self.filename_new)
|
||||||
new.read_kernel(file(self.filename_new))
|
|
||||||
try:
|
try:
|
||||||
ref = symbols(self.filename_ref)
|
ref = symbols(self.filename_ref)
|
||||||
except IOError:
|
except IOError:
|
||||||
|
|
|
@ -37,21 +37,7 @@ class symbols(object):
|
||||||
self.symbols = {}
|
self.symbols = {}
|
||||||
|
|
||||||
for line in file.readlines():
|
for line in file.readlines():
|
||||||
symbol, module, version = line.strip().split()
|
version, symbol, module = 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')
|
|
||||||
|
|
||||||
symbols = self.modules.get(module, {})
|
symbols = self.modules.get(module, {})
|
||||||
symbols[symbol] = version
|
symbols[symbol] = version
|
||||||
|
@ -65,7 +51,7 @@ class symbols(object):
|
||||||
symbols.sort()
|
symbols.sort()
|
||||||
for symbol, i in symbols:
|
for symbol, i in symbols:
|
||||||
module, version = i
|
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):
|
def write_human(self, file):
|
||||||
modules = self.modules.keys()
|
modules = self.modules.keys()
|
||||||
|
|
Loading…
Reference in New Issue