diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-02 23:45:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-04 23:39:00 +0000 |
commit | 7fa6eeba1c1e4667820c8543343083fad75cabee (patch) | |
tree | 1f1c38bf800d5b8aacf00586cb3ce5145109d4f5 /meta/classes/image-buildinfo.bbclass | |
parent | 252e64550a77b8e4a452d4f124bb8b378054d4de (diff) | |
download | poky-7fa6eeba1c1e4667820c8543343083fad75cabee.tar.gz |
classes/lib: Add expand parameter to getVarFlag
This sets the scene for removing the default False for expansion
from getVarFlag. This would later allow True to become the default.
On the most part this is an automatic translation with:
sed -e 's:\(\.getVarFlag([^,()]*, [^,()]*\)):\1, True):g' -i `grep -ril getVar *`
In this case, the default was False, but True was used since in most
cases here expansion would be expected.
(From OE-Core rev: 42a10788e89b07b14a150ced07113566cf99fcdd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-buildinfo.bbclass')
-rw-r--r-- | meta/classes/image-buildinfo.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass index aa17cc8f9e..5b738ae596 100644 --- a/meta/classes/image-buildinfo.bbclass +++ b/meta/classes/image-buildinfo.bbclass | |||
@@ -19,7 +19,7 @@ def image_buildinfo_outputvars(vars, listvars, d): | |||
19 | ret = "" | 19 | ret = "" |
20 | for var in vars: | 20 | for var in vars: |
21 | value = d.getVar(var, True) or "" | 21 | value = d.getVar(var, True) or "" |
22 | if (d.getVarFlag(var, 'type') == "list"): | 22 | if (d.getVarFlag(var, 'type', True) == "list"): |
23 | value = oe.utils.squashspaces(value) | 23 | value = oe.utils.squashspaces(value) |
24 | ret += "%s = %s\n" % (var, value) | 24 | ret += "%s = %s\n" % (var, value) |
25 | return ret.rstrip('\n') | 25 | return ret.rstrip('\n') |