sstate.bbclass: always delete stamp files in sstate_clean
For safety, always delete the stamp files in sstate_clean regardless of whether the manifest file exists or not. (From OE-Core rev: f781c35da9a11eefdb06bda72ca89753df863efa) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
cbbf658041
commit
ed1cbc9fa8
|
@ -229,17 +229,15 @@ def sstate_clean(ss, d):
|
|||
|
||||
manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d)
|
||||
|
||||
if not os.path.exists(manifest):
|
||||
return
|
||||
if os.path.exists(manifest):
|
||||
locks = []
|
||||
for lock in ss['lockfiles']:
|
||||
locks.append(bb.utils.lockfile(lock))
|
||||
|
||||
locks = []
|
||||
for lock in ss['lockfiles']:
|
||||
locks.append(bb.utils.lockfile(lock))
|
||||
sstate_clean_manifest(manifest, d)
|
||||
|
||||
sstate_clean_manifest(manifest, d)
|
||||
|
||||
for lock in locks:
|
||||
bb.utils.unlockfile(lock)
|
||||
for lock in locks:
|
||||
bb.utils.unlockfile(lock)
|
||||
|
||||
stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
|
||||
oe.path.remove(stfile)
|
||||
|
|
Loading…
Reference in New Issue