diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
commit | 3c59b1bf93adb0b9f723bda1d8702c8720733677 (patch) | |
tree | d1939643e2d02f0ce2e9ef33e235cd23cd5000d3 /meta/classes/sstate.bbclass | |
parent | c0f2890c01882e9ea14e781c044f3a84f75bd0fc (diff) | |
download | poky-3c59b1bf93adb0b9f723bda1d8702c8720733677.tar.gz |
meta: remove True option to getVarFlag calls
getVarFlag() now defaults to expanding by default, thus remove the
True option from getVarFlag() calls with a regex search and
replace.
Search made with the following regex:
getVarFlag ?\(( ?[^,()]*, ?[^,()]*), True\)
(From OE-Core rev: 2dea9e490a98377010b3d4118d054814c317a735)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 546e276d9f..a7cd9ec112 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -125,12 +125,12 @@ def sstate_state_fromvars(d, task = None): | |||
125 | 125 | ||
126 | if task.startswith("do_"): | 126 | if task.startswith("do_"): |
127 | task = task[3:] | 127 | task = task[3:] |
128 | inputs = (d.getVarFlag("do_" + task, 'sstate-inputdirs', True) or "").split() | 128 | inputs = (d.getVarFlag("do_" + task, 'sstate-inputdirs') or "").split() |
129 | outputs = (d.getVarFlag("do_" + task, 'sstate-outputdirs', True) or "").split() | 129 | outputs = (d.getVarFlag("do_" + task, 'sstate-outputdirs') or "").split() |
130 | plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs', True) or "").split() | 130 | plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs') or "").split() |
131 | lockfiles = (d.getVarFlag("do_" + task, 'sstate-lockfile', True) or "").split() | 131 | lockfiles = (d.getVarFlag("do_" + task, 'sstate-lockfile') or "").split() |
132 | lockfilesshared = (d.getVarFlag("do_" + task, 'sstate-lockfile-shared', True) or "").split() | 132 | lockfilesshared = (d.getVarFlag("do_" + task, 'sstate-lockfile-shared') or "").split() |
133 | interceptfuncs = (d.getVarFlag("do_" + task, 'sstate-interceptfuncs', True) or "").split() | 133 | interceptfuncs = (d.getVarFlag("do_" + task, 'sstate-interceptfuncs') or "").split() |
134 | if not task or len(inputs) != len(outputs): | 134 | if not task or len(inputs) != len(outputs): |
135 | bb.fatal("sstate variables not setup correctly?!") | 135 | bb.fatal("sstate variables not setup correctly?!") |
136 | 136 | ||
@@ -425,7 +425,7 @@ def sstate_clean(ss, d): | |||
425 | 425 | ||
426 | d2 = d.createCopy() | 426 | d2 = d.createCopy() |
427 | stamp_clean = d.getVar("STAMPCLEAN") | 427 | stamp_clean = d.getVar("STAMPCLEAN") |
428 | extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info', True) | 428 | extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info') |
429 | if extrainf: | 429 | if extrainf: |
430 | d2.setVar("SSTATE_MANMACH", extrainf) | 430 | d2.setVar("SSTATE_MANMACH", extrainf) |
431 | wildcard_stfile = "%s.do_%s*.%s" % (stamp_clean, ss['task'], extrainf) | 431 | wildcard_stfile = "%s.do_%s*.%s" % (stamp_clean, ss['task'], extrainf) |