wok diff librsvg/receipt @ 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 | 43e11f0a6527 |
children | 10eefd7db2df |
line diff
1.1 --- a/librsvg/receipt Thu Nov 18 00:58:55 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 +}