summaryrefslogtreecommitdiffstats
path: root/bitbake-dev
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-20 14:19:36 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-20 14:19:36 +0000
commitc53608b220a8b5acb2ba867cfdba10c2ede479a6 (patch)
tree56ba501bc65e2e5d9f1173b178278fc8d0fdb90d /bitbake-dev
parent8bb2cd79631e78a51ed8c062f8a104b6c6edecd9 (diff)
downloadpoky-c53608b220a8b5acb2ba867cfdba10c2ede479a6.tar.gz
bitbake utils.py: Merge prunedir symlink fix from bitbake upstream
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5551 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake-dev')
-rw-r--r--bitbake-dev/lib/bb/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake-dev/lib/bb/utils.py b/bitbake-dev/lib/bb/utils.py
index ad1a515292..33a0c17650 100644
--- a/bitbake-dev/lib/bb/utils.py
+++ b/bitbake-dev/lib/bb/utils.py
@@ -389,5 +389,8 @@ 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)