]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston-init: Do not exit with error if uncomment function fail
authorFabio Berton <fabio.berton@ossystems.com.br>
Wed, 14 Apr 2021 19:24:54 +0000 (16:24 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 14 May 2021 20:47:00 +0000 (17:47 -0300)
Show a warning instead of raising an error when uncomment function can't
found the text. This allows using a custom weston.ini file in bbappend.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
(cherry picked from commit 258063936a4256a40ba55bc2305c9989ef09598e)

recipes-graphics/wayland/weston-init.bbappend

index 22ffb7ffe9e2e6ac99ee042c98eb210ffc53a80e..66e148c15246323cebf6cfb13ff35d3d59310b7c 100644 (file)
@@ -41,7 +41,7 @@ INI_UNCOMMENT_ASSIGNMENTS_append_mx8mq = " \
 
 uncomment() {
     if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then
-        bbfatal "Commented setting '#$1' not found in file $2"
+        bbwarn "Commented setting '#$1' not found in file $2"
     fi
     sed -i -e 's,^#'"$1"','"$1"',g' $2
 }