diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sstate.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 57deaed18c..4668e57b32 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -170,8 +170,10 @@ def sstate_clean_manifest(manifest, d): | |||
170 | entry = entry.strip() | 170 | entry = entry.strip() |
171 | bb.debug(2, "Removing manifest: %s" % entry) | 171 | bb.debug(2, "Removing manifest: %s" % entry) |
172 | if entry.endswith("/"): | 172 | if entry.endswith("/"): |
173 | if os.path.exists(entry) and len(os.listdir(entry)) == 0: | 173 | if os.path.islink(entry[:-1]): |
174 | os.rmdir(entry) | 174 | os.remove(entry[:-1]) |
175 | elif os.path.exists(entry) and len(os.listdir(entry)) == 0: | ||
176 | os.rmdir(entry[:-1]) | ||
175 | else: | 177 | else: |
176 | oe.path.remove(entry) | 178 | oe.path.remove(entry) |
177 | 179 | ||