From 26f77623e0cabcbb6b23e50c3eb3dcb6c5694d9e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 6 Nov 2010 06:14:03 +0100 Subject: [PATCH] xbps-triggers: fix removal of gdk-pixbuf pkg due to gtk-pixbuf-loaders trigger errors, bump to 0.8. --- srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders | 6 ++++-- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders b/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders index 7c2327a4159..71bc6a3b4fd 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 4ea8a5dc33e..404f56b5528 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 "