wok-4.x rev 7770

Add post_install and post_remove functions to librsvg receipt. This is to update loaders.cache file when its installed.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 22 21:13:25 2010 +0000 (2010-12-22)
parents 6438ec4c58a5
children dde604dad060
files librsvg/receipt
line diff
     1.1 --- a/librsvg/receipt	Wed Dec 22 19:10:02 2010 +0000
     1.2 +++ b/librsvg/receipt	Wed Dec 22 21:13:25 2010 +0000
     1.3 @@ -40,3 +40,15 @@
     1.4  	find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
     1.5  }
     1.6  
     1.7 +# Pre and post install commands for Tazpkg.
     1.8 +post_install()
     1.9 +{
    1.10 +	echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
    1.11 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    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 +}