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

svn path=/dists/trunk/linux-2.6/; revision=7023
This commit is contained in:
Bastian Blank 2006-07-15 15:27:53 +00:00
parent 61742ae0f5
commit a3da57a52d
1 changed files with 12 additions and 5 deletions

View File

@ -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')