wok-6.x diff librsvg/receipt @ rev 11958
Fix: update gdk pixbuf loaders cache file properly
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 18 00:36:14 2012 +0100 (2012-02-18) |
parents | a2c8aeb4d439 |
children | 053c07e0ffa5 |
line diff
1.1 --- a/librsvg/receipt Sat Dec 17 21:48:58 2011 +0100 1.2 +++ b/librsvg/receipt Sat Feb 18 00:36:14 2012 +0100 1.3 @@ -40,15 +40,14 @@ 1.4 # Pre and post install commands for Tazpkg. 1.5 post_install() 1.6 { 1.7 - echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." 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 + echo -n "Updating gdk pixbuf loaders cache file..." 1.13 + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache 1.14 + status 1.15 } 1.16 1.17 post_remove() 1.18 { 1.19 - echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." 1.20 - chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders 1.21 + echo -n "Updating gdk pixbuf loaders cache file..." 1.22 + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache 1.23 + status 1.24 }