[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#557321: defoma: create wrong prerm script



Package: defoma
Version: 0.11.10-2
Severity: important
Tags: patch

Hi,

 The font packages created with defoma 0.11.10-2 and dh_installdefoma are not
 able to remove, because the bug was introduced in previous version

diff -urN defoma-0.11.10.previous/debhelper-files/prerm-defoma-hints defoma-0.11.10/debhelper-files/prerm-defoma-hints
--- defoma-0.11.10.previous/debhelper-files/prerm-defoma-hints  2006-06-18 00:54:22.000000000 +0900
+++ defoma-0.11.10/debhelper-files/prerm-defoma-hints   2009-11-09 02:29:02.000000000 +0900
@@ -1,4 +1,4 @@
 FILE='/etc/defoma/hints/#PACKAGE#.hints'
 if [ "$1" = remove ]; then
-       test -x /usr/bin/defoma-font && /usr/bin/defoma-font purge-all $FILE
+       test -x `which defoma-font` && defoma-font update #PACKAGE#
 fi

 it should be "purge-all" but it was changed to "update".


 FILE='/etc/defoma/hints/#PACKAGE#.hints'
 if [ "$1" = remove ]; then
-       test -x `which defoma-font` && defoma-font update #PACKAGE#
+       test -x `which defoma-font` && defoma-font purge-all #PACKAGE#
 fi



Reply to: