# HG changeset patch # User Christopher Rogers # Date 1293052405 0 # Node ID 47f1b21bacb9e71f8004ffdfe92ec6a4cf5f3546 # Parent 6438ec4c58a5229a1c63caca8f692db55dcbc69f Add post_install and post_remove functions to librsvg receipt. This is to update loaders.cache file when its installed. diff -r 6438ec4c58a5 -r 47f1b21bacb9 librsvg/receipt --- a/librsvg/receipt Wed Dec 22 19:10:02 2010 +0000 +++ b/librsvg/receipt Wed Dec 22 21:13:25 2010 +0000 @@ -40,3 +40,15 @@ find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \; } +# Pre and post install commands for Tazpkg. +post_install() +{ + echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache +} + +post_remove() +{ + echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache +}