diff mbox series

[07/13] UBUNTU: [Packaging] generate: only produce -di package configuration when present

Message ID 20220916114642.2953019-8-apw@canonical.com
State New
Headers show
Series [01/13] UBUNTU: [Packaging] generate-depends: relocate to debian/scripts | expand

Commit Message

Andy Whitcroft Sept. 16, 2022, 11:46 a.m. UTC
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/debian/rules b/debian/rules
index b073323..711b749 100755
--- a/debian/rules
+++ b/debian/rules
@@ -81,8 +81,10 @@  override_dh_auto_install:
 		verflav="$(abi)-$$flavour";					\
 										\
 		package="kernel-signed-image-$$verflav-di";			\
-		echo "$$package: adding $$signed";				\
-		echo "$$signed boot" >>"debian/$$package.install";		\
+		if grep -q "^Package: *$$package\\$$" debian/control; then	\
+			echo "$$package: adding $$signed";			\
+			echo "$$signed boot" >>"debian/$$package.install";	\
+		fi;								\
 										\
 		package="linux-image-$$verflav";				\
 		echo "$$package: adding $$signed";				\