diff mbox series

[{bionic,xenial,trusty}:linux] UBUNTU: [Packaging] Return non zero rc when updateconfigs fails

Message ID 20210329181811.3863399-1-marcelo.cerri@canonical.com
State New
Headers show
Series [{bionic,xenial,trusty}:linux] UBUNTU: [Packaging] Return non zero rc when updateconfigs fails | expand

Commit Message

Marcelo Henrique Cerri March 29, 2021, 6:18 p.m. UTC
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@canonical.com>
---
 debian/scripts/misc/kernelconfig | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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