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

@@ -17,12 +17,12 @@ targets)
echo "post-install post-remove"
;;
run)
if [ "$2" = "post-remove" -a "${PKGNAME}" = "desktop-file-utils" ]; then
[ -f ${desktopdb_cache} ] && rm -f ${desktopdb_cache}
break
fi
case "$2" in
post-*)
if [ "${PKGNAME}" = "desktop-file-utils" ]; then
[ -f ${desktopdb_cache} ] && rm -f ${desktopdb_cache}
break
fi
if [ -x ${desktopdb_bin} ]; then
echo "Updating MIME database..."
${desktopdb_bin} ${desktopdb_dir}