xbps-base-files: some changes to all triggers.

--HG--
extra : convert_revision : 2f3a39a7d1853268b84c5087cbbf5e74044c20f0
This commit is contained in:
Juan RP 2009-05-19 02:13:58 +02:00
parent 38e6679ff5
commit 5b3489c9ea
13 changed files with 56 additions and 85 deletions

View file

@ -7,23 +7,16 @@
# $3 = pkgname
# $4 = version
#
trigger="gtk-icon-cache"
iconcache_bin=./usr/bin/gtk-update-icon-cache
iconcache_bin=usr/bin/gtk-update-icon-cache
case "$1" in
targets)
echo "post-install post-remove"
;;
run)
echo "Running $trigger trigger..."
case "$2" in
post-*)
post-install)
for dir in ${gtk_iconcache_dirs}; do
if [ -f ${dir}/icon-theme.cache ]; then
rm -f ${dir}/icon-theme.cache
echo "Removed GTK+ icon theme cache for ${dir}."
fi
if [ -x ${iconcache_bin} ]; then
echo -n "Updating GTK+ icon cache for "
echo -n "${dir}... "
@ -32,6 +25,14 @@ run)
fi
done
;;
post-remove)
for dir in ${gtk_iconcache_dirs}; do
if [ -f ${dir}/icon-theme.cache ]; then
rm -f ${dir}/icon-theme.cache
echo "Removed GTK+ icon theme cache for ${dir}."
fi
done
;;
esac
;;
*)