debian/control: Assert that linux-{image,headers} templates describe 1 package

We only process the first package found in these templates so fail
if there are more.
This commit is contained in:
Ben Hutchings 2019-03-11 00:43:51 +00:00
parent 14ab885d53
commit dcd90f6ce7
1 changed files with 2 additions and 0 deletions

View File

@ -363,6 +363,7 @@ class Gencontrol(Base):
def do_flavour_packages(self, packages, makefile, arch, featureset,
flavour, vars, makeflags, extra):
headers = self.templates["control.headers"]
assert len(headers) == 1
config_entry_base = self.config.merge('base', arch, featureset,
flavour)
@ -451,6 +452,7 @@ class Gencontrol(Base):
image = self.templates[build_signed and "control.image-unsigned"
or "control.image"]
assert len(image) == 1
vars.setdefault('desc', None)