summaryrefslogtreecommitdiffstats
path: root/classes/fsl-eula-unpack.bbclass
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-01-17 14:29:17 +0000
committerAndré Draszik <andre.draszik@jci.com>2019-01-17 14:29:17 +0000
commit74df05a7f0fd698cbbe65b9bf925f186891426ca (patch)
tree169665d86e12f2aa2d6df71a856c1893267972d7 /classes/fsl-eula-unpack.bbclass
parent9704df97f08cf5895e2f5bcfb33f1a53d10c7704 (diff)
downloadmeta-freescale-74df05a7f0fd698cbbe65b9bf925f186891426ca.tar.gz
remove True option to getVar calls
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 <andre.draszik@jci.com>
Diffstat (limited to 'classes/fsl-eula-unpack.bbclass')
-rw-r--r--classes/fsl-eula-unpack.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass
index 198a1944..03f576e5 100644
--- a/classes/fsl-eula-unpack.bbclass
+++ b/classes/fsl-eula-unpack.bbclass
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM_append = " file://${FSL_EULA_FILE};md5=ab61cab9599935bfe9f70040
11LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" 11LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE"
12 12
13python fsl_bin_do_unpack() { 13python fsl_bin_do_unpack() {
14 src_uri = (d.getVar('SRC_URI', True) or "").split() 14 src_uri = (d.getVar('SRC_URI') or "").split()
15 if len(src_uri) == 0: 15 if len(src_uri) == 0:
16 return 16 return
17 17
@@ -44,9 +44,9 @@ python fsl_bin_do_unpack() {
44} 44}
45 45
46python do_unpack() { 46python do_unpack() {
47 eula = d.getVar('ACCEPT_FSL_EULA', True) 47 eula = d.getVar('ACCEPT_FSL_EULA')
48 eula_file = d.getVar('FSL_EULA_FILE', True) 48 eula_file = d.getVar('FSL_EULA_FILE')
49 pkg = d.getVar('PN', True) 49 pkg = d.getVar('PN')
50 if eula == None: 50 if eula == None:
51 bb.fatal("To use '%s' you need to accept the Freescale EULA at '%s'. " 51 bb.fatal("To use '%s' you need to accept the Freescale EULA at '%s'. "
52 "Please read it and in case you accept it, write: " 52 "Please read it and in case you accept it, write: "