summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/license_image.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2023-02-01 16:50:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-02 09:50:02 +0000
commit94149c4f374f31d5c780fd33e947170530cd81ec (patch)
tree2f4c9e8666efc8e0bbac014a13b5a15d738a5f9d /meta/classes-recipe/license_image.bbclass
parent8c36e1557f51934bfc0172909d80f4d7825dd6d0 (diff)
downloadpoky-94149c4f374f31d5c780fd33e947170530cd81ec.tar.gz
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) (From OE-Core rev: 26c74fd10614582e177437608908eb43688ab510) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/license_image.bbclass')
-rw-r--r--meta/classes-recipe/license_image.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/license_image.bbclass b/meta/classes-recipe/license_image.bbclass
index b60d6e44f4..8560c27e93 100644
--- a/meta/classes-recipe/license_image.bbclass
+++ b/meta/classes-recipe/license_image.bbclass
@@ -235,7 +235,7 @@ def get_deployed_dependencies(d):
235 deploy = {} 235 deploy = {}
236 # Get all the dependencies for the current task (rootfs). 236 # Get all the dependencies for the current task (rootfs).
237 taskdata = d.getVar("BB_TASKDEPDATA", False) 237 taskdata = d.getVar("BB_TASKDEPDATA", False)
238 pn = d.getVar("PN", True) 238 pn = d.getVar("PN")
239 depends = list(set([dep[0] for dep 239 depends = list(set([dep[0] for dep
240 in list(taskdata.values()) 240 in list(taskdata.values())
241 if not dep[0].endswith("-native") and not dep[0] == pn])) 241 if not dep[0].endswith("-native") and not dep[0] == pn]))