xbps-triggers: update gtk-pixbuf-loaders to use fixed cache file.

This commit is contained in:
Juan RP 2012-08-07 09:04:21 +02:00
parent 3b941f18f6
commit 22bc9ffd02
2 changed files with 3 additions and 3 deletions

View File

@ -17,6 +17,7 @@ UPDATE="$5"
export PATH="$PATH:/usr/local/bin" export PATH="$PATH:/usr/local/bin"
pixbuf_bin=usr/bin/gdk-pixbuf-query-loaders pixbuf_bin=usr/bin/gdk-pixbuf-query-loaders
pixbuf_cache=usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
case "$ACTION" in case "$ACTION" in
targets) targets)
@ -26,8 +27,7 @@ run)
[ ! -x ${pixbuf_bin} ] && exit 0 [ ! -x ${pixbuf_bin} ] && exit 0
if [ "$TARGET" = "pre-remove" -a "${PKGNAME}" = "gdk-pixbuf" ]; then if [ "$TARGET" = "pre-remove" -a "${PKGNAME}" = "gdk-pixbuf" ]; then
_cache_file=$(${pixbuf_bin} --print-cache-file) [ -f ${pixbuf_cache} ] && rm -f ${pixbuf_cache}
[ -f .${_cache_file} ] && rm -f .${_cache_file}
break break
fi fi
case "$TARGET" in case "$TARGET" in

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers' # Template file for 'xbps-triggers'
pkgname=xbps-triggers pkgname=xbps-triggers
version=0.44 version=0.45
revision=1 revision=1
noarch=yes noarch=yes
noextract=yes noextract=yes