mirror of
https://git.yoctoproject.org/poky
synced 2026-04-02 17:02:21 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ff997f4582
commit
dd31ff210a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user