debian/bin/gencontrol.py, debian/lib/python/debian_linux/gencontrol.py:
Set variables directly. svn path=/dists/trunk/linux-2.6/; revision=6421
This commit is contained in:
parent
7ba864e429
commit
063add3983
|
@ -8,7 +8,7 @@ class gencontrol(debian_linux.gencontrol.gencontrol):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(gencontrol, self).__init__()
|
super(gencontrol, self).__init__()
|
||||||
self.changelog = read_changelog()
|
self.changelog = read_changelog()
|
||||||
self.version, self.abiname, self.changelog_vars = self.process_changelog()
|
self.process_changelog()
|
||||||
|
|
||||||
def do_main_setup(self, vars, makeflags):
|
def do_main_setup(self, vars, makeflags):
|
||||||
vars.update(self.config['image',])
|
vars.update(self.config['image',])
|
||||||
|
@ -166,12 +166,8 @@ class gencontrol(debian_linux.gencontrol.gencontrol):
|
||||||
makefile.append(("source-%s-%s-%s-real:" % (arch, subarch, flavour)))
|
makefile.append(("source-%s-%s-%s-real:" % (arch, subarch, flavour)))
|
||||||
|
|
||||||
def process_changelog(self):
|
def process_changelog(self):
|
||||||
ret = [None, None, None]
|
version = self.changelog[0]['Version']
|
||||||
ret[0] = version = self.changelog[0]['Version']
|
self.changelog_vars = self.process_version(version)
|
||||||
vars = self.process_version(version)
|
|
||||||
ret[1] = vars['abiname']
|
|
||||||
ret[2] = vars
|
|
||||||
return ret
|
|
||||||
|
|
||||||
def process_real_image(self, in_entry, depends, vars):
|
def process_real_image(self, in_entry, depends, vars):
|
||||||
entry = self.process_package(in_entry, vars)
|
entry = self.process_package(in_entry, vars)
|
||||||
|
|
|
@ -245,6 +245,7 @@ class gencontrol(object):
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def process_version(self, version):
|
def process_version(self, version):
|
||||||
|
self.version = version
|
||||||
vars = {
|
vars = {
|
||||||
'upstreamversion': version['upstream'],
|
'upstreamversion': version['upstream'],
|
||||||
'version': version['version'],
|
'version': version['version'],
|
||||||
|
@ -252,9 +253,9 @@ class gencontrol(object):
|
||||||
'major': version['major'],
|
'major': version['major'],
|
||||||
}
|
}
|
||||||
if version['modifier'] is not None:
|
if version['modifier'] is not None:
|
||||||
vars['abiname'] = ''
|
self.abiname = vars['abiname'] = ''
|
||||||
else:
|
else:
|
||||||
vars['abiname'] = '-%s' % self.config['abiname',]['abiname']
|
self.abiname = vars['abiname'] = '-%s' % self.config['abiname',]['abiname']
|
||||||
return vars
|
return vars
|
||||||
|
|
||||||
def substitute(self, s, vars):
|
def substitute(self, s, vars):
|
||||||
|
|
Loading…
Reference in New Issue