summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2000-09-10 21:50:36 +0000
committerDaniel Robbins <drobbins@gentoo.org>2000-09-10 21:50:36 +0000
commit6b81c56db7e81680035b46f80a5733fd11a95dd4 (patch)
tree401a041c4b38e59390e8f4ff960db9294dcec4ab /sys-apps
parent*** empty log message *** (diff)
downloadhistorical-6b81c56db7e81680035b46f80a5733fd11a95dd4.tar.gz
historical-6b81c56db7e81680035b46f80a5733fd11a95dd4.tar.bz2
historical-6b81c56db7e81680035b46f80a5733fd11a95dd4.zip
unmerge fix to remove dead symlinks, but not changed symlinks
Diffstat (limited to 'sys-apps')
-rwxr-xr-xsys-apps/portage/files/portage-unmerge7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-apps/portage/files/portage-unmerge b/sys-apps/portage/files/portage-unmerge
index 102de1d2f43c..faa4030a700e 100755
--- a/sys-apps/portage/files/portage-unmerge
+++ b/sys-apps/portage/files/portage-unmerge
@@ -100,9 +100,10 @@ for pkgname in sys.argv[1:]:
print "--- !sym ","sym", obj
continue
mydest=os.readlink(obj)
- if mydest != pkgfiles[obj][2]:
- print "--- !destn","sym", obj
- continue
+ if os.path.exists(os.path.normpath(myroot+mydest)):
+ if mydest != pkgfiles[obj][2]:
+ print "--- !destn","sym", obj
+ continue
os.unlink(obj)
print "<<< ","sym",obj
elif pkgfiles[obj][0]=="obj":