X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-icons;h=9e00f03978dc2bcf09081043460fa8e601534874;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=3765560cb370e029f68646bf591d2fefb3be3e5f;hpb=780fefcdcfd21f335378899f2e20d92978b476e7;p=debhelper.git diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons index 3765560..9e00f03 100644 --- a/autoscripts/postrm-icons +++ b/autoscripts/postrm-icons @@ -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 -fi +if which update-icon-caches >/dev/null 2>&1 ; then + update-icon-caches #DIRLIST# +fi