summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index c4d548fe2e..bcac3638e1 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -106,8 +106,10 @@ def sstate_install(ss, d):
106 # We want to ensure that directories appear at the end of the manifest 106 # We want to ensure that directories appear at the end of the manifest
107 # so that when we test to see if they should be deleted any contents 107 # so that when we test to see if they should be deleted any contents
108 # added by the task will have been removed first. 108 # added by the task will have been removed first.
109 for dir in shareddirs: 109 dirs = sorted(shareddirs, key=len)
110 f.write(dir + "\n") 110 # Must remove children first, which will have a longer path than the parent
111 for di in reversed(dirs):
112 f.write(di + "\n")
111 f.close() 113 f.close()
112 114
113 for lock in locks: 115 for lock in locks: