Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158807

Summary: app-admin/localepurge leaves dangling symlinks
Product: Gentoo Linux Reporter: David Tardon <dtardon>
Component: Current packagesAssignee: José Alberto Suárez López (RETIRED) <bass>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Tardon 2006-12-22 00:45:03 UTC
When cleaning man pages, app-admin/localepurge deletes only regular files. This
may result in dangling symlinks (f.e. media-video/mplayer installs mencoder.1 as symlink to mplayer.1). This trivial patch solves it.

--- localepurge        2006-10-09 16:44:10.000000000 +0200
+++ localepurge     2006-12-17 17:56:02.000000000 +0100
@@ -198,7 +198,7 @@
                 if [ "${PRETEND}" = "enabled" ]; then 
                     echo "${MANPAGEDIR}/${LOCALE}"
                 else
-                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f`
+                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f -o -type l`
                 fi
             fi
           fi
@@ -211,7 +211,7 @@
                 if [ "${PRETEND}" = "enabled" ]; then 
                     echo "${MANPAGEDIR}/${LOCALE}"
                 else
-                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f`
+                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f -o -type l`
                 fi
             fi
           fi
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-23 11:09:02 UTC
*** Bug 158936 has been marked as a duplicate of this bug. ***
Comment 2 José Alberto Suárez López (RETIRED) gentoo-dev 2007-01-21 19:53:13 UTC
Thanks,

now in 5.3.3

The correct patch is -o -type l

regards