diff options
| author | Fabio Berton <fabio.berton@ossystems.com.br> | 2021-04-14 16:24:54 -0300 | 
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-04-14 16:54:31 -0300 | 
| commit | 258063936a4256a40ba55bc2305c9989ef09598e (patch) | |
| tree | c41735f577246fbaf61f4a1ba7e294e9f518f7af | |
| parent | 0f027054615fca5a624233ae8ddc13ab63d4866f (diff) | |
| download | meta-freescale-258063936a4256a40ba55bc2305c9989ef09598e.tar.gz | |
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 <fabio.berton@ossystems.com.br>
| -rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 22ffb7ffe..66e148c15 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
| @@ -41,7 +41,7 @@ INI_UNCOMMENT_ASSIGNMENTS_append_mx8mq = " \ | |||
| 41 | 41 | ||
| 42 | uncomment() { | 42 | uncomment() { | 
| 43 | if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then | 43 | if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then | 
| 44 | bbfatal "Commented setting '#$1' not found in file $2" | 44 | bbwarn "Commented setting '#$1' not found in file $2" | 
| 45 | fi | 45 | fi | 
| 46 | sed -i -e 's,^#'"$1"','"$1"',g' $2 | 46 | sed -i -e 's,^#'"$1"','"$1"',g' $2 | 
| 47 | } | 47 | } | 
