xbps-triggers: update gtk-pixbuf-loaders to use fixed cache file.
This commit is contained in:
parent
3b941f18f6
commit
22bc9ffd02
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue