]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-icons
Updated French man page translation. Closes: #685560
[debhelper.git] / autoscripts / postrm-icons
index 87fd790b993cd855c41b7b182cb3f5f6512439df..9e00f03978dc2bcf09081043460fa8e601534874 100644 (file)
@@ -1,15 +1,3 @@
-if [ "$1" = "remove" ]; then
-       for dir in #DIRLIST#; do
-               if [ -d "$dir" ]; then
-                       if [ -f "$dir"/index.theme ] && \
-                          [ -f "$dir"/icon-theme.cache ] && \
-                          which gtk-update-icon-cache >/dev/null 2>&1
-                       then
-                               gtk-update-icon-cache --force --quiet "$dir"
-                       else
-                               rm -f "$dir"/icon-theme.cache
-                               rmdir -p --ignore-fail-on-non-empty "$dir"
-                       fi
-               fi
-       done
+if which update-icon-caches >/dev/null 2>&1 ; then
+       update-icon-caches #DIRLIST#
 fi