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:
committed by
Andrea Righi
parent
61e21a64e3
commit
81914dd14e
Vendored
-36
@@ -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
|
||||
Reference in New Issue
Block a user