Le samedi 28 novembre 2009 à 00:00 +0100, Davide Viti a écrit :
> Hi all,
>
> On Mon, Nov 16, 2009 at 09:15:31AM +0100, Josselin Mouette wrote:
> > Shouldn’t you run defoma-font purge-all in the preinst rather than the
> > prerm?
>
> that's right: just updated my ttf-dejavu patch in [1]
> please review it again if you got the chance
I think you are missing these changes:
--- debian/preinst (révision 1346)
+++ debian/preinst (copie de travail)
@@ -25,15 +25,15 @@
rm_conffile ttf-dejavu "/etc/defoma/hints/ttf-dejavu.hints"
fi
- if dpkg --compare-versions "$2" le "2.30-2"; then
+ if dpkg --compare-versions "$2" lt-nl "2.30-2"; then
for PKG in ttf-dejavu-core ttf-dejavu-extra ; do
FILE="/etc/defoma/hints/${PKG}.hints"
if [ -f $FILE ]; then
if [ -x /usr/bin/defoma-font ]; then
defoma-font purge-all $FILE || true
fi
- rm_conffile $PKG $FILE
fi
+ rm_conffile $PKG $FILE
done
fi
esac
Furthermore, shouldn’t you purge the hint files in each of the packages
instead of doing it in the metapackage?
Cheers,
--
.''`. Josselin Mouette
: :' :
`. `' “I recommend you to learn English in hope that you in
`- future understand things” -- Jörg Schilling
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=