xbps-base-files: some more fixes for the triggers.
--HG-- extra : convert_revision : 9a96f3d2101793c8dd8e140dc2728cadd9496f61
This commit is contained in:
@@ -14,22 +14,23 @@ targets)
|
||||
echo "post-install post-remove"
|
||||
;;
|
||||
run)
|
||||
case "$2" in
|
||||
post-install)
|
||||
for dir in ${gtk_iconcache_dirs}; do
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo -n "Updating GTK+ icon cache for "
|
||||
echo -n "${dir}... "
|
||||
${iconcache_bin} -q -f -t ${dir}
|
||||
echo "done."
|
||||
fi
|
||||
done
|
||||
;;
|
||||
post-remove)
|
||||
if [ "$2" = "post-remove" -a "${PKGNAME}" = "gtk+" ]; then
|
||||
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}."
|
||||
echo -n "Removed GTK+ icon theme "
|
||||
echo "cache for ${dir}."
|
||||
fi
|
||||
done
|
||||
break
|
||||
fi
|
||||
case "$2" in
|
||||
post-*)
|
||||
for dir in ${gtk_iconcache_dirs}; do
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo -n "Updating GTK+ icon cache for "
|
||||
echo "${dir}..."
|
||||
${iconcache_bin} -q -f -t ${dir}
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
Reference in New Issue
Block a user