aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux/abi.py
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2008-04-27 06:26:15 +0000
committerBastian Blank <waldi@debian.org>2008-04-27 06:26:15 +0000
commitfb5a6dc08c171a94d70292000bc48d8e2dca58c7 (patch)
tree57d51c92fb2687c7d46ec33a9a0bf365c117048e /debian/lib/python/debian_linux/abi.py
parentbadb42f93c5046f7541dc6f038ccf11652099e15 (diff)
downloadkernel_replicant_linux-fb5a6dc08c171a94d70292000bc48d8e2dca58c7.tar.gz
kernel_replicant_linux-fb5a6dc08c171a94d70292000bc48d8e2dca58c7.tar.bz2
kernel_replicant_linux-fb5a6dc08c171a94d70292000bc48d8e2dca58c7.zip
debian/bin, debian/lib: Infrastructure was declared irrelevant, drop it.
svn path=/dists/trunk/linux-2.6/; revision=11213
Diffstat (limited to 'debian/lib/python/debian_linux/abi.py')
-rw-r--r--debian/lib/python/debian_linux/abi.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/debian/lib/python/debian_linux/abi.py b/debian/lib/python/debian_linux/abi.py
deleted file mode 100644
index d04ad450d4d5..000000000000
--- a/debian/lib/python/debian_linux/abi.py
+++ /dev/null
@@ -1,51 +0,0 @@
-class symbols(dict):
- def __init__(self, filename = None):
- self.modules = {}
- if filename is not None:
- self.read(file(filename))
-
- def cmp(self, new):
- symbols_ref = set(self.keys())
- symbols_new = set(new.keys())
-
- symbols_add = {}
- symbols_remove = {}
-
- symbols_change = {}
-
- for symbol in symbols_new - symbols_ref:
- symbols_add[symbol] = new[symbol]
-
- for symbol in symbols_ref.intersection(symbols_new):
- symbol_ref = self[symbol]
- symbol_new = new[symbol]
-
- ent = {'ref': symbol_ref, 'new': symbol_new, 'changes': {}}
- for i in ('module', 'version', 'export'):
- if symbol_ref[i] != symbol_new[i]:
- ent['changes'][i] = {'ref': symbol_ref, 'new': symbol_new}
- if ent['changes']:
- symbols_change[symbol] = ent
-
- for symbol in symbols_ref - symbols_new:
- symbols_remove[symbol] = self[symbol]
-
- return symbols_add, symbols_change, symbols_remove
-
- def read(self, file):
- for line in file.readlines():
- version, symbol, module, export = line.strip().split()
-
- if self.has_key(symbol):
- pass
- symbols = self.modules.get(module, set())
- symbols.add(symbol)
- self.modules[module] = symbols
- self[symbol] = {'symbol': symbol, 'module': module, 'version': version, 'export': export}
-
- def write(self, file):
- symbols = self.items()
- symbols.sort()
- for symbol, info in symbols:
- file.write("%(version)s %(symbol)s %(module)s %(export)s\n" % info)
-