package localepurge tags 431522 + patch thanks Hello,
To fix this the ucf call must be masked by a test that checks for the existence of /usr/bin/ucf. The attached patch does exactly this. It additionally prints a warning that ucf could not be found if it is unavailable during purge. Grüße, Frank
diff -Naur localepurge-0.5.9.bak/debian/postrm localepurge-0.5.9/debian/postrm
--- localepurge-0.5.9.bak/debian/postrm 2007-08-31 17:56:48.000000000 +0200
+++ localepurge-0.5.9/debian/postrm 2007-08-31 19:10:52.000000000 +0200
@@ -7,7 +7,11 @@
db_purge
rm -rf /var/cache/localepurge
rm -f /etc/locale.nopurge
- /usr/bin/ucf --purge /etc/locale.nopurge
+ if [ -x /usr/bin/ucf ]; then
+ /usr/bin/ucf --purge /etc/locale.nopurge
+ else
+ echo >&2 "/etc/locale.nopurge could not be purged because ucf was not found."
+ fi
rm -f /etc/locale.nopurge.md5sum
echo
signature.asc
Description: This is a digitally signed message part.

