Revert "UBUNTU: [Packaging] Add debian/control sanity check"

This reverts commit 8482350050.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
Paolo Pisati
2024-03-11 11:57:37 +01:00
committed by Andrea Righi
parent 61e21a64e3
commit 81914dd14e
2 changed files with 0 additions and 37 deletions
-36
View File
@@ -1,36 +0,0 @@
#!/bin/bash -eu
#
# debian/control sanity checks
#
echo "II: Checking debian/control"
. debian/debian.env
source_name=$(dpkg-parsechangelog -l"${DEBIAN}"/changelog -SSource)
linux_source=$(grep -P '^Package:\s*linux.*-source-\d+\.\d+\.\d+' debian/control | sed 's/^Package:\s*//')
case "${source_name}___${linux_source}" in
linux___linux-source-*)
# Main kernel package produces linux-source
true
;;
linux-*___)
# Non-main kernel package must *not* produce linux-source
true
;;
*)
# All other combinations are packaging mistakes
if [ -n "${linux_source}" ] ; then
echo "EE: debian/control contains invalid package stanza:" >&2
echo "Package: ${linux_source}" >&2
else
echo "EE: debian/control is missing package stanza:" >&2
echo "Package: linux-source-PKGVER" >&2
fi
exit 1
;;
esac
echo "II: Done"
exit 0