mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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:
committed by
Richard Purdie
parent
cbbf658041
commit
ed1cbc9fa8
@@ -229,17 +229,15 @@ def sstate_clean(ss, d):
|
|||||||
|
|
||||||
manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d)
|
manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d)
|
||||||
|
|
||||||
if not os.path.exists(manifest):
|
if os.path.exists(manifest):
|
||||||
return
|
locks = []
|
||||||
|
for lock in ss['lockfiles']:
|
||||||
|
locks.append(bb.utils.lockfile(lock))
|
||||||
|
|
||||||
locks = []
|
sstate_clean_manifest(manifest, d)
|
||||||
for lock in ss['lockfiles']:
|
|
||||||
locks.append(bb.utils.lockfile(lock))
|
|
||||||
|
|
||||||
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']
|
stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
|
||||||
oe.path.remove(stfile)
|
oe.path.remove(stfile)
|
||||||
|
|||||||
Reference in New Issue
Block a user