diff -Nuar localepurge-0.6.2.orig/usr/sbin/localepurge localepurge-0.6.2/usr/sbin/localepurge --- localepurge-0.6.2.orig/usr/sbin/localepurge 2006-10-20 23:32:53.000000000 +0200 +++ localepurge-0.6.2/usr/sbin/localepurge 2007-09-25 20:02:36.000000000 +0200 @@ -100,7 +100,7 @@ for NEWLOCALE in $(cd /usr/share/locale; ls .) do - if [ -d /usr/share/locale/$NEWLOCALE/LC_MESSAGES ]; then + if [ -d /usr/share/locale/$NEWLOCALE/LC_MESSAGES -a ! -h /usr/share/locale/$NEWLOCALE ]; then if [ ! "$(grep -cx $NEWLOCALE $LOCALELIST)" = "1" ]; then echo "$NEWLOCALE" >> "$NEWLOCALELIST" fi @@ -109,7 +109,7 @@ for NEWLOCALE in $(ls --ignore="man[1-9]*" /usr/share/man) do - if [ -d /usr/share/man/$NEWLOCALE/man1 ] || [ -d /usr/share/man/$NEWLOCALE/man8 ]; then + if [ -d /usr/share/man/$NEWLOCALE/man1 ! -h /usr/share/man/$NEWLOCALE/man1 ] || [ -d /usr/share/man/$NEWLOCALE/man8 ! -h /usr/share/man/$NEWLOCALE/man8 ]; then if [ ! "$(grep -cx $NEWLOCALE $LOCALELIST)" = "1" ]; then echo "$NEWLOCALE" >> "$NEWLOCALELIST" fi