xbps-triggers: fix removal of gdk-pixbuf pkg due to gtk-pixbuf-loaders trigger errors, bump to 0.8.
This commit is contained in:
parent
d874b48dcf
commit
26f77623e0
2 changed files with 5 additions and 3 deletions
|
@ -18,10 +18,12 @@ pixbuf_bin=usr/bin/gdk-pixbuf-query-loaders
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
targets)
|
targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install pre-remove post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
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)
|
_cache_file=$(${pixbuf_bin} --print-cache-file)
|
||||||
[ -f .${_cache_file} ] && rm -f .${_cache_file}
|
[ -f .${_cache_file} ] && rm -f .${_cache_file}
|
||||||
break
|
break
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.7
|
version=0.8
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue