mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +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()
|
||||
bb.debug(2, "Removing manifest: %s" % entry)
|
||||
if entry.endswith("/"):
|
||||
if os.path.exists(entry) and len(os.listdir(entry)) == 0:
|
||||
os.rmdir(entry)
|
||||
if os.path.islink(entry[:-1]):
|
||||
os.remove(entry[:-1])
|
||||
elif os.path.exists(entry) and len(os.listdir(entry)) == 0:
|
||||
os.rmdir(entry[:-1])
|
||||
else:
|
||||
oe.path.remove(entry)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user