summaryrefslogtreecommitdiff
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 10:41:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-05 10:33:18 -0800
commit3b57de68e70e77dbc03c0616a83a29a2e99e40b4 (patch)
tree5a49ced6b0b972994fe537094c1c3b406b33c98f /meta/classes/sstate.bbclass
parent906641853e8ac6fd296dfb91f8bb647c7da8e23e (diff)
downloadopenembedded-core-3b57de68e70e77dbc03c0616a83a29a2e99e40b4.tar.gz
openembedded-core-3b57de68e70e77dbc03c0616a83a29a2e99e40b4.tar.bz2
openembedded-core-3b57de68e70e77dbc03c0616a83a29a2e99e40b4.tar.xz
openembedded-core-3b57de68e70e77dbc03c0616a83a29a2e99e40b4.zip
meta/classes: Convert to use appendVar and appendVarFlags
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d20b62a66..b1cdf0f83 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -46,12 +46,8 @@ python () {
namemap = []
for task in unique_tasks:
namemap.append(d.getVarFlag(task, 'sstate-name'))
- funcs = d.getVarFlag(task, 'prefuncs') or ""
- funcs = "sstate_task_prefunc " + funcs
- d.setVarFlag(task, 'prefuncs', funcs)
- funcs = d.getVarFlag(task, 'postfuncs') or ""
- funcs = funcs + " sstate_task_postfunc"
- d.setVarFlag(task, 'postfuncs', funcs)
+ d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ")
+ d.appendVarFlag(task, 'postfuncs', " sstate_task_postfunc")
d.setVar('SSTATETASKNAMES', " ".join(namemap))
}