From d759b652b77b81caa9b010463f713bd5c773ffc3 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Wed, 20 Jul 2011 14:42:29 +0200 Subject: [PATCH] hooks: use pkg-config in gdk-pixbuf-query-loaders --- src/hooks.d/gdk-pixbuf-query-loaders.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hooks.d/gdk-pixbuf-query-loaders.sh b/src/hooks.d/gdk-pixbuf-query-loaders.sh index 9a94fb8..5539a48 100644 --- a/src/hooks.d/gdk-pixbuf-query-loaders.sh +++ b/src/hooks.d/gdk-pixbuf-query-loaders.sh @@ -14,15 +14,17 @@ for bin in ${binaries} ; do fi done -cachefile=$(pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0) -if grep -q "gdk-pixbuf-2.0/.*/loaders/.*\.(so|a)" ${BEE_METADIR}/${pkg}/FILES ; then +gdk_pixbuf_moduledir=$(pkg-config --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0) +gdk_pixbuf_cache_file=$(pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0) + +if grep -q "${gdk_pixbuf_moduledir}" ${BEE_METADIR}/${pkg}/FILES ; then case "${action}" in "post-install") - rm -f ${cachefile} + rm -f ${gdk_pixbuf_cache_file} gdk-pixbuf-query-loaders --update-cache ;; "pre-remove") - rm -f ${cachefile} + rm -f ${gdk_pixbuf_cache_file} ;; "post-remove") gdk-pixbuf-query-loaders --update-cache