[linux] 06/07: debian_linux.gencontrol: Allow variable substitutions in control.source.in

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Apr 4 18:29:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch benh/secure-boot
in repository linux.

commit 7b9f22feefcb2b2870a069333be71710e02a33eb
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Apr 3 17:29:17 2016 +0100

    debian_linux.gencontrol: Allow variable substitutions in control.source.in
    
    linux-signed may need this feature.
---
 debian/lib/python/debian_linux/gencontrol.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/lib/python/debian_linux/gencontrol.py b/debian/lib/python/debian_linux/gencontrol.py
index fdc7e99..4972737 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', ]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list