]> 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>
Wed, 14 Apr 2021 19:54:31 +0000 (16:54 -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>
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
 }