mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
meta-oe: remove True option to getVar calls (again)
A couple have still been missed in the past despite multiple
attempts at doing so (or simply have re-appeared?).
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 <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -3,18 +3,18 @@
|
||||
# For more informaiton https://github.com/nexB/scancode-toolkit
|
||||
|
||||
SCANCODE_FORMAT ?= "html-app"
|
||||
EXT = "${@'html' if d.getVar('SCANCODE_FORMAT', True) == 'html-app' else 'json'}"
|
||||
EXT = "${@'html' if d.getVar('SCANCODE_FORMAT') == 'html-app' else 'json'}"
|
||||
SCANCODE_TOOLKIT = "${@get_scancode_toolkit(d)}"
|
||||
SCANCODE_TAG = "v2.2.1"
|
||||
SCANCODE_GIT_LOCATION ?= "https://github.com/nexB/scancode-toolkit.git"
|
||||
SCANCODE_SRC_LOCATION ?= "${DL_DIR}/scancode"
|
||||
|
||||
def get_scancode_toolkit(d):
|
||||
lf = bb.utils.lockfile(d.getVar('SCANCODE_SRC_LOCATION', True) + ".lock")
|
||||
if (not os.path.exists(d.getVar('SCANCODE_SRC_LOCATION', True))):
|
||||
os.system("git clone %s %s -b %s" % (d.getVar('SCANCODE_GIT_LOCATION', True), d.getVar('SCANCODE_SRC_LOCATION', True), d.getVar('SCANCODE_TAG', True)))
|
||||
lf = bb.utils.lockfile(d.getVar('SCANCODE_SRC_LOCATION') + ".lock")
|
||||
if (not os.path.exists(d.getVar('SCANCODE_SRC_LOCATION'))):
|
||||
os.system("git clone %s %s -b %s" % (d.getVar('SCANCODE_GIT_LOCATION'), d.getVar('SCANCODE_SRC_LOCATION'), d.getVar('SCANCODE_TAG')))
|
||||
bb.utils.unlockfile(lf)
|
||||
return (d.getVar('SCANCODE_SRC_LOCATION', True))
|
||||
return (d.getVar('SCANCODE_SRC_LOCATION'))
|
||||
|
||||
do_scancode() {
|
||||
mkdir -p ${DEPLOY_DIR_IMAGE}/scancode
|
||||
|
||||
Reference in New Issue
Block a user