mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
sstate: Handle symlink directory entries correctly
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -170,8 +170,10 @@ def sstate_clean_manifest(manifest, d):
|
|||||||
entry = entry.strip()
|
entry = entry.strip()
|
||||||
bb.debug(2, "Removing manifest: %s" % entry)
|
bb.debug(2, "Removing manifest: %s" % entry)
|
||||||
if entry.endswith("/"):
|
if entry.endswith("/"):
|
||||||
if os.path.exists(entry) and len(os.listdir(entry)) == 0:
|
if os.path.islink(entry[:-1]):
|
||||||
os.rmdir(entry)
|
os.remove(entry[:-1])
|
||||||
|
elif os.path.exists(entry) and len(os.listdir(entry)) == 0:
|
||||||
|
os.rmdir(entry[:-1])
|
||||||
else:
|
else:
|
||||||
oe.path.remove(entry)
|
oe.path.remove(entry)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user