summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 0fdeb9dfe8..31789da50a 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -426,7 +426,7 @@ def sstate_clean_cachefiles(d):
426 ss = sstate_state_fromvars(ld, task) 426 ss = sstate_state_fromvars(ld, task)
427 sstate_clean_cachefile(ss, ld) 427 sstate_clean_cachefile(ss, ld)
428 428
429def sstate_clean_manifest(manifest, d): 429def sstate_clean_manifest(manifest, d, prefix=None):
430 import oe.path 430 import oe.path
431 431
432 mfile = open(manifest) 432 mfile = open(manifest)
@@ -435,6 +435,8 @@ def sstate_clean_manifest(manifest, d):
435 435
436 for entry in entries: 436 for entry in entries:
437 entry = entry.strip() 437 entry = entry.strip()
438 if prefix and not entry.startswith("/"):
439 entry = prefix + "/" + entry
438 bb.debug(2, "Removing manifest: %s" % entry) 440 bb.debug(2, "Removing manifest: %s" % entry)
439 # We can race against another package populating directories as we're removing them 441 # We can race against another package populating directories as we're removing them
440 # so we ignore errors here. 442 # so we ignore errors here.