gencontrol_signed.py: Add package_dir attribute for template package dir

This commit is contained in:
Ben Hutchings 2018-09-13 00:53:42 +01:00
parent 6854f1871e
commit 6cfab0cf13
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class Gencontrol(Base):
'arch': arch,
}
self.template_top_dir = ('debian/%(template)s/usr/share/code-signing/%(template)s' %
self.package_dir = 'debian/%(template)s' % self.vars
self.template_top_dir = (self.package_dir +
'/usr/share/code-signing/%(template)s' %
self.vars)
self.template_debian_dir = self.template_top_dir + '/source-template/debian'
os.makedirs(self.template_debian_dir, exist_ok=True)