From 258063936a4256a40ba55bc2305c9989ef09598e Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Wed, 14 Apr 2021 16:24:54 -0300 Subject: weston-init: Do not exit with error if uncomment function fail 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 --- recipes-graphics/wayland/weston-init.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 22ffb7ff..66e148c1 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend @@ -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 } -- cgit v1.2.3-54-g00ecf