From 74df05a7f0fd698cbbe65b9bf925f186891426ca Mon Sep 17 00:00:00 2001 From: André Draszik Date: Thu, 17 Jan 2019 14:29:17 +0000 Subject: remove True option to getVar calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() calls with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik --- recipes-multimedia/imx-codec/imx-codec_4.4.2.bb | 4 ++-- recipes-multimedia/imx-parser/imx-parser_4.4.2.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes-multimedia') diff --git a/recipes-multimedia/imx-codec/imx-codec_4.4.2.bb b/recipes-multimedia/imx-codec/imx-codec_4.4.2.bb index 60a3717ec..39860c862 100644 --- a/recipes-multimedia/imx-codec/imx-codec_4.4.2.bb +++ b/recipes-multimedia/imx-codec/imx-codec_4.4.2.bb @@ -43,7 +43,7 @@ python __set_insane_skip() { # Ensure we have PACKAGES expanded bb.build.exec_func("read_subpackage_metadata", d) - for p in d.getVar('PACKAGES', True).split(): + for p in d.getVar('PACKAGES').split(): # Even though we are packaging libraries those are plugins so we # shouldn't rename the packages to follow its sonames. d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") @@ -66,7 +66,7 @@ python __split_libfslcodec_plugins() { output_pattern='imx-codec-%s', description='Freescale i.MX Codec (%s)', extra_depends='') - pkgs = d.getVar('PACKAGES', True).split() + pkgs = d.getVar('PACKAGES').split() for pkg in pkgs: meta = pkg[10:] if meta != '': diff --git a/recipes-multimedia/imx-parser/imx-parser_4.4.2.bb b/recipes-multimedia/imx-parser/imx-parser_4.4.2.bb index 492ab8934..ed1a13daa 100644 --- a/recipes-multimedia/imx-parser/imx-parser_4.4.2.bb +++ b/recipes-multimedia/imx-parser/imx-parser_4.4.2.bb @@ -30,7 +30,7 @@ python __set_insane_skip() { # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have # the source we cannot fix it. Disable the insane check for now. # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those - for p in d.getVar('PACKAGES', True).split(): + for p in d.getVar('PACKAGES').split(): d.setVar("INSANE_SKIP_%s" % p, "ldflags dev-so textrel") } -- cgit v1.2.3-54-g00ecf