[kernel] r7023 - dists/trunk/linux-2.6/debian/bin

Bastian Blank waldi at costa.debian.org
Sat Jul 15 15:27:54 UTC 2006


Author: waldi
Date: Sat Jul 15 15:27:53 2006
New Revision: 7023

Modified:
   dists/trunk/linux-2.6/debian/bin/abiupdate.py

Log:
debian/bin/abiupdate.py: Read informations from the changelog.


Modified: dists/trunk/linux-2.6/debian/bin/abiupdate.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/abiupdate.py	(original)
+++ dists/trunk/linux-2.6/debian/bin/abiupdate.py	Sat Jul 15 15:27:53 2006
@@ -18,11 +18,6 @@
 
     def __init__(self):
         self.log = sys.stdout.write
-        self.source = "linux-2.6"
-        self.version = "2.6.17"
-        self.abiname = "1"
-        self.version_abi = self.version + '-' + self.abiname
-        self.version_source = "2.6.17-2"
 
         if len(sys.argv) > 1:
             self.override_arch = sys.argv[1]
@@ -31,6 +26,18 @@
         if len(sys.argv) > 3:
             self.override_flavour = sys.argv[3]
 
+        changelog = read_changelog()
+        while changelog[0]['Distribution'] == 'UNRELEASED':
+            changelog.pop(0)
+        changelog = changelog[0]
+
+        self.source = changelog['Source']
+        self.version = changelog['Version']['version']
+        self.version_source = changelog['Version']['source']
+
+        self.abiname = "1"
+        self.version_abi = self.version + '-' + self.abiname
+
     def __call__(self):
         import tempfile
         self.dir = tempfile.mkdtemp(prefix = 'abiupdate')



More information about the Kernel-svn-changes mailing list