summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sstate.bbclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 7d253a7dc5..57deaed18c 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -96,10 +96,12 @@ def sstate_install(ss, d):
96 bb.debug(2, "Staging %s to %s" % (srcpath, dstpath)) 96 bb.debug(2, "Staging %s to %s" % (srcpath, dstpath))
97 sharedfiles.append(dstpath) 97 sharedfiles.append(dstpath)
98 for dir in dirs: 98 for dir in dirs:
99 dir = os.path.join(state[2], dir) 99 srcdir = os.path.join(walkroot, dir)
100 if not dir.endswith("/"): 100 dstdir = srcdir.replace(state[1], state[2])
101 dir = dir + "/" 101 bb.debug(2, "Staging %s to %s" % (srcdir, dstdir))
102 shareddirs.append(dir) 102 if not dstdir.endswith("/"):
103 dstdir = dstdir + "/"
104 shareddirs.append(dstdir)
103 f = open(manifest, "w") 105 f = open(manifest, "w")
104 for file in sharedfiles: 106 for file in sharedfiles:
105 f.write(file + "\n") 107 f.write(file + "\n")
@@ -166,6 +168,7 @@ def sstate_clean_manifest(manifest, d):
166 168
167 for entry in entries: 169 for entry in entries:
168 entry = entry.strip() 170 entry = entry.strip()
171 bb.debug(2, "Removing manifest: %s" % entry)
169 if entry.endswith("/"): 172 if entry.endswith("/"):
170 if os.path.exists(entry) and len(os.listdir(entry)) == 0: 173 if os.path.exists(entry) and len(os.listdir(entry)) == 0:
171 os.rmdir(entry) 174 os.rmdir(entry)