From dcd90f6ce7ff579133d0bf8a94a7bbc0acc385d6 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 11 Mar 2019 00:43:51 +0000 Subject: [PATCH] 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. --- debian/bin/gencontrol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index ff3fe2be71b8..1c125cfe15e6 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -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)