diff options
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index d367faaa7b..b4873f0f3d 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -229,17 +229,15 @@ def sstate_clean(ss, d): | |||
229 | 229 | ||
230 | manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d) | 230 | manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d) |
231 | 231 | ||
232 | if not os.path.exists(manifest): | 232 | if os.path.exists(manifest): |
233 | return | 233 | locks = [] |
234 | for lock in ss['lockfiles']: | ||
235 | locks.append(bb.utils.lockfile(lock)) | ||
234 | 236 | ||
235 | locks = [] | 237 | sstate_clean_manifest(manifest, d) |
236 | for lock in ss['lockfiles']: | ||
237 | locks.append(bb.utils.lockfile(lock)) | ||
238 | 238 | ||
239 | sstate_clean_manifest(manifest, d) | 239 | for lock in locks: |
240 | 240 | bb.utils.unlockfile(lock) | |
241 | for lock in locks: | ||
242 | bb.utils.unlockfile(lock) | ||
243 | 241 | ||
244 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] | 242 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] |
245 | oe.path.remove(stfile) | 243 | oe.path.remove(stfile) |