summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-06-28 20:34:19 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-29 14:46:52 +0100
commitdd31ff210a0eaf93cdcdfa2e53dada5183bcc5b8 (patch)
tree80a330bfc8551024a09327d05d0bf5caa3c1e904 /meta
parentff997f45827db9b64128b30cd7d2a365d064128d (diff)
downloadpoky-dd31ff210a0eaf93cdcdfa2e53dada5183bcc5b8.tar.gz
sstate.bbclass: Fix an issue if the config changes
We need to check if we know of the task type, before we attempt to process it. In order to reproduce the problem build with: PACKAGE_CLASSES = "package_ipk" Then change it to: PACKAGE_CLASSES = "package_rpm" Build again -- and then try bitbake -c cleansstate <recipe> (From OE-Core rev: 8870ba9d261d3cacbe5d1219fdd95840c05ecf9e) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 14c90ecdeb..0daaf4846e 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -273,6 +273,8 @@ python sstate_cleanall() {
273 name = manifest.replace(manifest_pattern[:-1], "") 273 name = manifest.replace(manifest_pattern[:-1], "")
274 namemap = d.getVar('SSTATETASKNAMES', True).split() 274 namemap = d.getVar('SSTATETASKNAMES', True).split()
275 tasks = d.getVar('SSTATETASKS', True).split() 275 tasks = d.getVar('SSTATETASKS', True).split()
276 if name not in namemap:
277 continue
276 taskname = tasks[namemap.index(name)] 278 taskname = tasks[namemap.index(name)]
277 shared_state = sstate_state_fromvars(d, taskname[3:]) 279 shared_state = sstate_state_fromvars(d, taskname[3:])
278 sstate_clean(shared_state, d) 280 sstate_clean(shared_state, d)