Package: localepurge
Version: 0.5.9-0.1

Hello,

While investigating Debian bug #222232, I noticed that localepurge uses
code like this for deleting mo files:

|      if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES ]; then
|          for file in "$LOCALEDIR/$LOCALE"/*/*
|           do
|            if [ -f "$file" ] || [ -h "$file" ]; then
|                /bin/rm "$file"
|            fi
|           done
|      fi

Is this really intentional to delete contents of _all_ subdirectories of
$LOCALE if and only if LC_MESSAGES subdirectory exists?

Specifically if all packages providing files in LC_MESSAGES are deleted, then
why is it no longer a good idea to delete other subdirectories' (e.g. LC_TIME)
contents?

I suspect this is a kind of simplified heuristic based on the contents of most
packages when this code was written? But then it's not "future-proof" and it
does make it a little hard to fix #222232 :-)

regards,
-- 
Marcin Owsiany <[email protected]>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to