diff --git a/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders b/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders index 7c2327a415..71bc6a3b4f 100755 --- a/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders +++ b/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders @@ -18,10 +18,12 @@ pixbuf_bin=usr/bin/gdk-pixbuf-query-loaders case "$ACTION" in targets) - echo "post-install post-remove" + echo "post-install pre-remove post-remove" ;; run) - if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "gdk-pixbuf" ]; then + [ ! -x ${pixbuf_bin} ] && exit 0 + + if [ "$TARGET" = "pre-remove" -a "${PKGNAME}" = "gdk-pixbuf" ]; then _cache_file=$(${pixbuf_bin} --print-cache-file) [ -f .${_cache_file} ] && rm -f .${_cache_file} break diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 4ea8a5dc33..404f56b552 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.7 +version=0.8 build_style=custom-install short_desc="XBPS triggers" maintainer="Juan RP "