From 1571e57cf0d6cd4f8ca3d4434f6c177358517421 Mon Sep 17 00:00:00 2001 From: Matthias Ruester Date: Fri, 16 Mar 2012 10:51:52 +0100 Subject: [PATCH] hooks: gdk-pixbuf-query-loaders: exit if pkg-config returned nothing --- hooks/gdk-pixbuf-query-loaders.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hooks/gdk-pixbuf-query-loaders.sh b/hooks/gdk-pixbuf-query-loaders.sh index 12690b7..3ab84c7 100644 --- a/hooks/gdk-pixbuf-query-loaders.sh +++ b/hooks/gdk-pixbuf-query-loaders.sh @@ -37,6 +37,10 @@ fi 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 [ -z "${gdk_pixbuf_moduledir}" -o -z "${gdk_pixbuf_cache_file}" ]; then + exit 0 +fi + if grep -q "file=${gdk_pixbuf_moduledir}" ${BEE_METADIR}/${pkg}/FILES ; then case "${action}" in "post-install")