]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate.bbclass: Fix an issue if the config changes
authorMark Hatle <mark.hatle@windriver.com>
Wed, 29 Jun 2011 01:34:19 +0000 (20:34 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jun 2011 13:35:52 +0000 (14:35 +0100)
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>

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/sstate.bbclass

index 14c90ecdeba2f9a8b8ac7495328b029d131089c8..0daaf4846ec2d4aa64e730c6ff762eb360cc9064 100644 (file)
@@ -273,6 +273,8 @@ python sstate_cleanall() {
              name = manifest.replace(manifest_pattern[:-1], "")
              namemap = d.getVar('SSTATETASKNAMES', True).split()
              tasks = d.getVar('SSTATETASKS', True).split()
+             if name not in namemap:
+                  continue
              taskname = tasks[namemap.index(name)]
              shared_state = sstate_state_fromvars(d, taskname[3:])
              sstate_clean(shared_state, d)