aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux/abi.py
diff options
context:
space:
mode:
authorNoah Meyerhans <noahm@debian.org>2020-03-27 10:08:13 -0700
committerBen Hutchings <ben@decadent.org.uk>2020-03-28 16:43:17 +0000
commit7a54cc60ba9fb2c1d018e7eed61fe6cbe0c055e4 (patch)
tree2a554580ea1485fb6b0fbba52d96448446d32872 /debian/lib/python/debian_linux/abi.py
parentac64a094a9be5d89ca17b92efe1d7837ee6362af (diff)
downloadkernel_replicant_linux-7a54cc60ba9fb2c1d018e7eed61fe6cbe0c055e4.tar.gz
kernel_replicant_linux-7a54cc60ba9fb2c1d018e7eed61fe6cbe0c055e4.tar.bz2
kernel_replicant_linux-7a54cc60ba9fb2c1d018e7eed61fe6cbe0c055e4.zip
Cope with change to Module.symvers file structure
With commit 7b727f1c5394 ("modpost: move the namespace field in Module.symvers last"), upstream has re-ordered the content of Module.symvers. Update our tooling to cope with the new input format, and to preserve the new format in output.
Diffstat (limited to 'debian/lib/python/debian_linux/abi.py')
-rw-r--r--debian/lib/python/debian_linux/abi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/lib/python/debian_linux/abi.py b/debian/lib/python/debian_linux/abi.py
index c3ca9704045c..8c108b6fdfbf 100644
--- a/debian/lib/python/debian_linux/abi.py
+++ b/debian/lib/python/debian_linux/abi.py
@@ -35,10 +35,10 @@ class Symbols(dict):
def read(self, file):
for line in file:
- version, name, namespace, module, export = line.strip().split('\t')
+ version, name, module, export, namespace = line.strip('\r\n').split('\t')
self[name] = Symbol(name, namespace, module, version, export)
def write(self, file):
for s in sorted(self.values(), key=lambda i: i.name):
file.write("%s\t%s\t%s\t%s\t%s\n" %
- (s.version, s.name, s.namespace, s.module, s.export))
+ (s.version, s.name, s.module, s.export, s.namespace))