xbps-base-files: some more fixes for the triggers.

--HG--
extra : convert_revision : 9a96f3d2101793c8dd8e140dc2728cadd9496f61
This commit is contained in:
Juan RP
2009-05-19 10:42:57 +02:00
parent 39c24fdd2c
commit fcb0e12cf1
7 changed files with 34 additions and 34 deletions

View File

@@ -15,15 +15,15 @@ targets)
echo "post-install post-remove"
;;
run)
if [ "$2" = "post-remove" -a "${PKGNAME}" = "pango" ]; then
if [ -f ${pango_modules} ]; then
echo "Removing pango modules file..."
rm -f ${pango_modules}
fi
break
fi
case "$2" in
post-*)
if [ "${PKGNAME}" = "pango" ]; then
if [ -f ${pango_modules} ]; then
echo "Removing pango modules file..."
rm -f ${pango_modules}
fi
break
fi
if [ -x ${pango_bin} ]; then
echo "Updating pango modules file..."
${pango_bin} > ${pango_modules}