diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-06-28 20:34:19 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-29 14:35:52 +0100 |
commit | 8870ba9d261d3cacbe5d1219fdd95840c05ecf9e (patch) | |
tree | db5ba41a9a11782abd4e67269637e293926b64d6 | |
parent | 99d8d574f15d6bd2294b340da20bd9a47af79f9f (diff) | |
download | openembedded-core-8870ba9d261d3cacbe5d1219fdd95840c05ecf9e.tar.gz openembedded-core-8870ba9d261d3cacbe5d1219fdd95840c05ecf9e.tar.bz2 openembedded-core-8870ba9d261d3cacbe5d1219fdd95840c05ecf9e.zip |
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>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | meta/classes/sstate.bbclass | 2 |
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() { 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) |