wok-6.x rev 7786

Fixed librsvg post_install and post_remove.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 23 21:47:47 2010 +0000 (2010-12-23)
parents e26d9d190eeb
children 0ed652eb0c62
files librsvg/receipt
line diff
     1.1 --- a/librsvg/receipt	Thu Dec 23 17:18:37 2010 +0000
     1.2 +++ b/librsvg/receipt	Thu Dec 23 21:47:47 2010 +0000
     1.3 @@ -44,11 +44,14 @@
     1.4  post_install()
     1.5  {
     1.6  	echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
     1.7 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
     1.8 +	if [ ! -d $1/etc/gtk-2.0 ]; then
     1.9 +		mkdir -p $1/etc/gtk-2.0
    1.10 +	fi
    1.11 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    1.12  }
    1.13  
    1.14  post_remove()
    1.15  {
    1.16  	echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
    1.17 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    1.18 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    1.19  }