]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
meta: remove True option to getVar and getVarFlag calls (again)
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 1 Feb 2023 15:50:38 +0000 (16:50 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 11 Feb 2023 14:03:33 +0000 (04:03 -1000)
commitf12fcb8a3f3d11c981c223569f8f40ec705c837a
tree062dd1fd5726eecc784540e2857cfa8198a5c30c
parent4daadcc7c8daf687b29a0958a7aaacdae45ae3cf
meta: remove True option to getVar and getVarFlag calls (again)

* True is default since 2016 and most layers were already updated
  not to pass this parameter where not necessary, e.g. oe-core was
  updated couple times, first in:
  https://git.openembedded.org/openembedded-core/commit/?id=7c552996597faaee2fbee185b250c0ee30ea3b5f

  Updated with the same regexp as later oe-core update:
  https://git.openembedded.org/openembedded-core/commit/?id=9f551d588693328e4d99d33be94f26684eafcaba

  with small modification to replace not only d.getVar, but also data.getVar as in e.g.:
  e.data.getVar('ERR_REPORT_USERNAME', True)

  and for getVarFlag:
  sed -e 's|\(d\.getVarFlag \?\)( \?\([^,()]*, \?[^,()]*\), \?True)|\1(\2)|g' \
      -i $(git grep -E 'getVarFlag ?\( ?([^,()]*), ?([^,()]*), ?True\)' \
          | cut -d':' -f1 \
          | sort -u)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 26c74fd10614582e177437608908eb43688ab510)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/image.bbclass
meta/classes-recipe/license_image.bbclass
meta/classes-recipe/rust-target-config.bbclass
meta/lib/oe/package_manager/deb/__init__.py
meta/recipes-devtools/go/go_1.19.4.bb
meta/recipes-devtools/rust/rust.inc
scripts/contrib/image-manifest
scripts/lib/devtool/menuconfig.py