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:
parent
14ab885d53
commit
dcd90f6ce7
|
@ -363,6 +363,7 @@ class Gencontrol(Base):
|
||||||
def do_flavour_packages(self, packages, makefile, arch, featureset,
|
def do_flavour_packages(self, packages, makefile, arch, featureset,
|
||||||
flavour, vars, makeflags, extra):
|
flavour, vars, makeflags, extra):
|
||||||
headers = self.templates["control.headers"]
|
headers = self.templates["control.headers"]
|
||||||
|
assert len(headers) == 1
|
||||||
|
|
||||||
config_entry_base = self.config.merge('base', arch, featureset,
|
config_entry_base = self.config.merge('base', arch, featureset,
|
||||||
flavour)
|
flavour)
|
||||||
|
@ -451,6 +452,7 @@ class Gencontrol(Base):
|
||||||
|
|
||||||
image = self.templates[build_signed and "control.image-unsigned"
|
image = self.templates[build_signed and "control.image-unsigned"
|
||||||
or "control.image"]
|
or "control.image"]
|
||||||
|
assert len(image) == 1
|
||||||
|
|
||||||
vars.setdefault('desc', None)
|
vars.setdefault('desc', None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue