debian/lib/python/debian_linux/gencontrol.py: Don't override source name

We set the source package name from debian/changelog, which is not
appropriate when generating a source package template for a signed image
package.  Only set the source package name if it's not in the control
template.
This commit is contained in:
Ben Hutchings 2018-04-07 10:32:02 +02:00
parent f980187986
commit 1d4211ef97
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class Gencontrol(object):
def do_source(self, packages):
source = self.templates["control.source"][0]
source['Source'] = self.changelog[0].source
if not source.get('Source'):
source['Source'] = self.changelog[0].source
packages['source'] = self.process_package(source, self.vars)
def do_main(self, packages, makefile):