debian/bin/abicheck.py, debian/bin/abiupdate.py,

debian/lib/python/debian_linux/abi.py: Support updated version description.

svn path=/dists/trunk/linux-2.6/; revision=7703
This commit is contained in:
Bastian Blank 2006-11-06 13:23:55 +00:00
parent 4db55f4755
commit e3afc0557a
3 changed files with 8 additions and 4 deletions

View File

@ -67,6 +67,8 @@ class checker(object):
info.append("module: %s -> %s" % change_info[symbol]['module'])
if change_info[symbol].has_key('version'):
info.append("version: %s -> %s" % change_info[symbol]['version'])
if change_info[symbol].has_key('export'):
info.append("export: %s -> %s" % change_info[symbol]['export'])
out.write("%-48s %s\n" % (symbol, ", ".join(info)))
if remove:
out.write("\nRemoved symbols:\n")

View File

@ -32,8 +32,8 @@ class main(object):
changelog = changelog[0]
self.source = changelog['Source']
self.version = changelog['Version']['version']
self.version_source = changelog['Version']['source']
self.version = changelog['Version']['linux']['version']
self.version_source = changelog['Version']['linux']['source']
local_config = config_reader_arch(["debian/arch"])

View File

@ -16,14 +16,16 @@ class symbols(object):
symbols_add[symbol] = {'module': new.symbols[symbol][0]}
for symbol in symbols_ref.intersection(symbols_new):
module_ref, version_ref = self.symbols[symbol]
module_new, version_new = new.symbols[symbol]
module_ref, version_ref, export_ref = self.symbols[symbol]
module_new, version_new, export_new = new.symbols[symbol]
ent = {}
if module_ref != module_new:
ent['module'] = module_ref, module_new
if version_ref != version_new:
ent['version'] = version_ref, version_new
if export_ref != export_new:
ent['export'] = export_ref, export_new
if ent:
symbols_change[symbol] = ent