Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158936 - localepurge leaves dangling symlinks
Summary: localepurge leaves dangling symlinks
Status: VERIFIED DUPLICATE of bug 158807
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-23 11:06 UTC by David Tardon
Modified: 2006-12-23 11:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Tardon 2006-12-23 11:06:00 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

*** This bug has been marked as a duplicate of 158807 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-23 11:09:56 UTC
Dupe.