diff -Nuar localepurge-0.5.9.orig/usr/sbin/localepurge localepurge-0.5.9/usr/sbin/localepurge --- localepurge-0.5.9.orig/usr/sbin/localepurge 2006-10-20 23:32:53.000000000 +0200 +++ localepurge-0.5.9/usr/sbin/localepurge 2007-09-25 20:02:36.000000000 +0200 @@ -77,7 +77,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 @@ -126,7 +126,7 @@ do if [ ! "$(grep -x ^$LOCALE /etc/locale.nopurge)" ] && \ [ "$(grep -x ^$LOCALE $LOCALELIST)" ]; then - if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES ]; then + if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES -a ! -h $LOCALEDIR/$LOCALE ]; then for file in "$LOCALEDIR/$LOCALE"/*/* do if [ -f "$file" ] || [ -h "$file" ]; then @@ -141,7 +141,7 @@ do if [ ! "$(grep -x ^$LOCALE /etc/locale.nopurge)" ] && \ [ "$(grep -x ^$LOCALE $LOCALELIST)" ]; then - if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES ]; then + if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES -a ! -h $LOCALEDIR/$LOCALE ]; then for file in "$LOCALEDIR/$LOCALE"/*/* do if [ -f "$file" ] || [ -h "$file" ]; then @@ -178,7 +178,7 @@ do if [ ! "$(grep -x ^$LOCALE /etc/locale.nopurge)" ] && \ [ "$(grep -x ^$LOCALE $LOCALELIST)" ]; then - if [ -d $MANPAGEDIR/$LOCALE ]; then + if [ -d $MANPAGEDIR/$LOCALE -a ! -h $MANPAGEDIR/$LOCALE ]; then for file in "$MANPAGEDIR/$LOCALE"/man[1-9]/* do if [ -f "$file" ] || [ -h "$file" ]; then @@ -193,7 +193,7 @@ do if [ ! "$(grep -x ^$LOCALE /etc/locale.nopurge)" ] && \ [ "$(grep -x ^$LOCALE $LOCALELIST)" ]; then - if [ -d $MANPAGEDIR/$LOCALE ]; then + if [ -d $MANPAGEDIR/$LOCALE -a ! -h $MANPAGEDIR/$LOCALE ]; then for file in "$MANPAGEDIR/$LOCALE"/man[1-9]/* do if [ -f "$file" ] || [ -h "$file" ]; then