[{bionic, xenial, trusty}:linux][PATCH] UBUNTU: [Packaging] Return non zero rc when updateconfigs fails
Marcelo Henrique Cerri
marcelo.cerri at canonical.com
Mon Mar 29 18:18:11 UTC 2021
Update the kernelconfig script to report errors via its return
code. That causes the updateconfigs target and `cranky updateconfigs`
to also return a non zero return code when some check fails (ie, a
config doesn't match with its annotation).
Properties: no-test-build
Ignore:yes
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
debian/scripts/misc/kernelconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/scripts/misc/kernelconfig b/debian/scripts/misc/kernelconfig
index 060cc04b17aa..ea892cde20fa 100755
--- a/debian/scripts/misc/kernelconfig
+++ b/debian/scripts/misc/kernelconfig
@@ -174,3 +174,6 @@ fi
rm -rf build
+[ "$fail" != 0 ] && exit 1
+
+exit 0
--
2.25.1
More information about the kernel-team
mailing list