aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2006-07-15 15:27:53 +0000
committerBastian Blank <waldi@debian.org>2006-07-15 15:27:53 +0000
commita3da57a52dc06afc2881ec29676215cb12b3c084 (patch)
treeb35c7f98682f9d298ceac1db1ed85a4c2eb871ac
parent61742ae0f52539e1c2411445adbdf7fab645a4f4 (diff)
downloadkernel_replicant_linux-a3da57a52dc06afc2881ec29676215cb12b3c084.tar.gz
kernel_replicant_linux-a3da57a52dc06afc2881ec29676215cb12b3c084.tar.bz2
kernel_replicant_linux-a3da57a52dc06afc2881ec29676215cb12b3c084.zip
debian/bin/abiupdate.py: Read informations from the changelog.
svn path=/dists/trunk/linux-2.6/; revision=7023
-rwxr-xr-xdebian/bin/abiupdate.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/debian/bin/abiupdate.py b/debian/bin/abiupdate.py
index b583cf56dc36..3fcce041d145 100755
--- a/debian/bin/abiupdate.py
+++ b/debian/bin/abiupdate.py
@@ -18,11 +18,6 @@ class main(object):
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 @@ class main(object):
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')