diff mbox series

[Unstable/Mantic,1/3] UBUNTU: [Packaging] checks/final-checks: Remove old configs handling

Message ID 20230704082540.14960-2-juerg.haefliger@canonical.com
State New
Headers show
Series checks/final-checks: Misc cleanups | expand

Commit Message

Juerg Haefliger July 4, 2023, 8:25 a.m. UTC
There are still some references to the old config/config.common.ubuntu file
which no longer exists, so remove them.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian/scripts/checks/final-checks | 34 ++++++++----------------------
 1 file changed, 9 insertions(+), 25 deletions(-)
diff mbox series

Patch

diff --git a/debian/scripts/checks/final-checks b/debian/scripts/checks/final-checks
index 5d283e3c4c6a..5581bb644a14 100755
--- a/debian/scripts/checks/final-checks
+++ b/debian/scripts/checks/final-checks
@@ -61,20 +61,6 @@  then
 	failure "$abi_version ABI version mismatch ($abi != $version)"
 fi
 
-if [ -e $debian/config/config.common.ubuntu ]; then
-    if [ -d debian/certs ]; then
-        if ! grep -q '^CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"$' $debian/config/config.common.ubuntu; then
-            failure "'CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"' is required"
-        fi
-    fi
-
-    if [ -d debian/revoked-certs ]; then
-        if ! grep -q '^CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"$' $debian/config/config.common.ubuntu; then
-            failure "'CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"' is required"
-        fi
-    fi
-fi
-
 for arch in $archs
 do
 	image_pkg=$(awk -F '\\s*=\\s*' '$1 == "do_flavour_image_package" { print $2 }' $debian/rules.d/$arch.mk)
@@ -92,18 +78,16 @@  do
 	for flavour in $flavours
 	do
 		flavour=$(echo "$flavour" | sed -e 's@.*/config.flavour.@@')
-		if [ ! -e $debian/config/config.common.ubuntu ]; then
-			if [ -d debian/certs ]; then
-				python3 debian/scripts/misc/annotations --export -c CONFIG_SYSTEM_TRUSTED_KEYS --arch $arch --flavour $flavour | grep -q '^CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"$'
-				if [ $? -ne 0 ]; then
-					failure "'CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"' is required"
-				fi
+		if [ -d debian/certs ]; then
+			python3 debian/scripts/misc/annotations --export -c CONFIG_SYSTEM_TRUSTED_KEYS --arch $arch --flavour $flavour | grep -q '^CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"$'
+			if [ $? -ne 0 ]; then
+				failure "'CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"' is required"
 			fi
-			if [ -d debian/revoked-certs ]; then
-				python3 debian/scripts/misc/annotations --export -c CONFIG_SYSTEM_REVOCATION_KEYS --arch $arch --flavour $flavour | grep -q '^CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"$'
-				if [ $? -ne 0 ]; then
-					failure "'CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"' is required"
-				fi
+		fi
+		if [ -d debian/revoked-certs ]; then
+			python3 debian/scripts/misc/annotations --export -c CONFIG_SYSTEM_REVOCATION_KEYS --arch $arch --flavour $flavour | grep -q '^CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"$'
+			if [ $? -ne 0 ]; then
+				failure "'CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"' is required"
 			fi
 		fi
 		if [ "${skipabi}" = "false" ] ; then