diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2016-04-03 17:29:17 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-04-04 10:41:48 +0100 |
commit | 7b9f22feefcb2b2870a069333be71710e02a33eb (patch) | |
tree | 5065efeda8ccc7a565e84e6df08173628c3bdf6c /debian/lib/python | |
parent | 516d9dac1d8650fc21bdf13cfcd7e400fb925cdb (diff) | |
download | kernel_replicant_linux-7b9f22feefcb2b2870a069333be71710e02a33eb.tar.gz kernel_replicant_linux-7b9f22feefcb2b2870a069333be71710e02a33eb.tar.bz2 kernel_replicant_linux-7b9f22feefcb2b2870a069333be71710e02a33eb.zip |
debian_linux.gencontrol: Allow variable substitutions in control.source.in
linux-signed may need this feature.
Diffstat (limited to 'debian/lib/python')
-rw-r--r-- | debian/lib/python/debian_linux/gencontrol.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/lib/python/debian_linux/gencontrol.py b/debian/lib/python/debian_linux/gencontrol.py index fdc7e991891d..49727370ee5e 100644 --- a/debian/lib/python/debian_linux/gencontrol.py +++ b/debian/lib/python/debian_linux/gencontrol.py @@ -80,6 +80,7 @@ class Gencontrol(object): def __init__(self, config, templates, version=Version): self.config, self.templates = config, templates self.changelog = Changelog(version=version) + self.vars = {} def __call__(self): packages = PackagesList() @@ -94,7 +95,7 @@ class Gencontrol(object): def do_source(self, packages): source = self.templates["control.source"][0] source['Source'] = self.changelog[0].source - packages['source'] = self.process_package(source) + packages['source'] = self.process_package(source, self.vars) def do_main(self, packages, makefile): config_entry = self.config['base', ] |