<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>158807</bug_id>
          
          <creation_ts>2006-12-22 00:45 0000</creation_ts>
          <short_desc>app-admin/localepurge leaves dangling symlinks</short_desc>
          <delta_ts>2007-01-21 19:53:13 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dtardon@redhat.com</reporter>
          <assigned_to>bass@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>dtardon@redhat.com</who>
            <bug_when>2006-12-22 00:45:03 0000</bug_when>
            <thetext>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 [ &quot;${PRETEND}&quot; = &quot;enabled&quot; ]; then 
                     echo &quot;${MANPAGEDIR}/${LOCALE}&quot;
                 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 [ &quot;${PRETEND}&quot; = &quot;enabled&quot; ]; then 
                     echo &quot;${MANPAGEDIR}/${LOCALE}&quot;
                 else
-                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f`
+                    /bin/rm -f `find ${MANPAGEDIR}/${LOCALE} -type f -o -type l`
                 fi
             fi
           fi</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-23 11:09:02 0000</bug_when>
            <thetext>*** Bug 158936 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bass@gentoo.org</who>
            <bug_when>2007-01-21 19:53:13 0000</bug_when>
            <thetext>Thanks,

now in 5.3.3

The correct patch is -o -type l

regards</thetext>
          </long_desc>
      
    </bug>

</bugzilla>