diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 9641b988ab..cc3d03f609 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -389,6 +389,9 @@ def prunedir(topdir): | |||
389 | for name in files: | 389 | for name in files: |
390 | os.remove(os.path.join(root, name)) | 390 | os.remove(os.path.join(root, name)) |
391 | for name in dirs: | 391 | for name in dirs: |
392 | os.rmdir(os.path.join(root, name)) | 392 | if os.path.islink(os.path.join(root, name)): |
393 | os.remove(os.path.join(root, name)) | ||
394 | else: | ||
395 | os.rmdir(os.path.join(root, name)) | ||
393 | os.rmdir(topdir) | 396 | os.rmdir(topdir) |
394 | 397 | ||