diff mbox series

[Unstable] UBUNTU: [Packaging] final-checks: Remove useless sourcing of kernelconfig

Message ID 20220624124153.137933-1-juerg.haefliger@canonical.com
State New
Headers show
Series [Unstable] UBUNTU: [Packaging] final-checks: Remove useless sourcing of kernelconfig | expand

Commit Message

Juerg Haefliger June 24, 2022, 12:41 p.m. UTC
kernelconfig only defines 'archs' but 'archs' is overwritten after the
fact so remove the uselsess sourcing. While at it, remove a stray leading
space in the following line.

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

Patch

diff --git a/debian/scripts/misc/final-checks b/debian/scripts/misc/final-checks
index 8a977745a667..07cfb3da33a4 100755
--- a/debian/scripts/misc/final-checks
+++ b/debian/scripts/misc/final-checks
@@ -3,8 +3,7 @@ 
 debian="$1"
 abi="$2"
 
-. "$debian/etc/kernelconfig"
-archs=$( awk '/^Architecture:/ { $1=""; for (i=1; i<=NF; i++) { if ($i != "all") { print $i }}}' debian/control | sort -u)
+archs=$(awk '/^Architecture:/ { $1=""; for (i=1; i<=NF; i++) { if ($i != "all") { print $i }}}' debian/control | sort -u)
 
 fail=0