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:17:51.000000000 +0200 @@ -112,9 +112,14 @@ # Getting rid of superfluous locale files in $LOCALEDIR: -LOCALEDIR=/usr/share/locale +LOCALEDIR_LIST="" +for LOCALEDIR in /usr/share/locale /usr/share/locale-langpack ; do + if [ -d $LOCALEDIR ]; then + LOCALEDIR_LIST="$LOCALEDIR_LIST $LOCALEDIR" + fi +done -if [ -d $LOCALEDIR ]; then +for LOCALEDIR in $LOCALEDIR_LIST ; do if [ "$SHOWFREEDSPACE" = "enabled" ]; then LOCALEBEFORE=$(get_used_space $LOCALEDIR) @@ -160,7 +165,7 @@ echo "localepurge: Disk space freed in $LOCALEDIR: "$LOCALETOTAL"K" fi fi -fi +done # Getting rid of localized man pages in $MANPAGEDIR