mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
2
debian/bin/gencontrol.py
vendored
2
debian/bin/gencontrol.py
vendored
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user