wok-current rev 12196
bluefish, libfm, obconf, pcmanfm, shared-mime-info, xournal, zim: fix update-mime-database post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 26 16:18:20 2012 +0200 (2012-03-26) |
parents | 329bc88c9d17 |
children | 00b28dc6dcdb |
files | bluefish/receipt libfm/receipt obconf/receipt pcmanfm/receipt shared-mime-info/receipt xournal/receipt zim/receipt |
line diff
1.1 --- a/bluefish/receipt Mon Mar 26 15:56:49 2012 +0200 1.2 +++ b/bluefish/receipt Mon Mar 26 16:18:20 2012 +0200 1.3 @@ -35,5 +35,5 @@ 1.4 # Post-install commands 1.5 post_install() 1.6 { 1.7 - $1/usr/bin/update-mime-database $1/usr/share/mime || continue 1.8 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 1.9 }
2.1 --- a/libfm/receipt Mon Mar 26 15:56:49 2012 +0200 2.2 +++ b/libfm/receipt Mon Mar 26 16:18:20 2012 +0200 2.3 @@ -45,5 +45,5 @@ 2.4 { 2.5 # update mime-cache 2.6 echo "Updating mime-types database" 2.7 - update-mime-database $1/usr/share/mime 2.8 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 2.9 }
3.1 --- a/obconf/receipt Mon Mar 26 15:56:49 2012 +0200 3.2 +++ b/obconf/receipt Mon Mar 26 16:18:20 2012 +0200 3.3 @@ -40,7 +40,5 @@ 3.4 # Update mime database. 3.5 post_install() 3.6 { 3.7 - local root 3.8 - root=$1 3.9 - update-mime-database $root/usr/share/mime || continue 3.10 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 3.11 }
4.1 --- a/pcmanfm/receipt Mon Mar 26 15:56:49 2012 +0200 4.2 +++ b/pcmanfm/receipt Mon Mar 26 16:18:20 2012 +0200 4.3 @@ -56,5 +56,5 @@ 4.4 { 4.5 # update mime-cache 4.6 echo "Updating mime-types database" 4.7 - update-mime-database $1/usr/share/mime 4.8 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 4.9 }
5.1 --- a/shared-mime-info/receipt Mon Mar 26 15:56:49 2012 +0200 5.2 +++ b/shared-mime-info/receipt Mon Mar 26 16:18:20 2012 +0200 5.3 @@ -33,5 +33,5 @@ 5.4 # Update mime database. 5.5 post_install() 5.6 { 5.7 - $1/usr/bin/update-mime-database $1/usr/share/mime || continue 5.8 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 5.9 }
6.1 --- a/xournal/receipt Mon Mar 26 15:56:49 2012 +0200 6.2 +++ b/xournal/receipt Mon Mar 26 16:18:20 2012 +0200 6.3 @@ -37,9 +37,9 @@ 6.4 post_install() 6.5 { 6.6 echo -n "Updating databases..." 6.7 - update-desktop-database 6.8 - update-mime-database /usr/share/mime 6.9 - gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null 6.10 + chroot "$1/" update-desktop-database 6.11 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 6.12 + chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null 6.13 status 6.14 } 6.15
7.1 --- a/zim/receipt Mon Mar 26 15:56:49 2012 +0200 7.2 +++ b/zim/receipt Mon Mar 26 16:18:20 2012 +0200 7.3 @@ -30,9 +30,9 @@ 7.4 { 7.5 echo -n "Processing post-install commands..." 7.6 # Create mimeinfo.cache in /usr/share/applications 7.7 - update-desktop-database 7.8 - update-mime-database /usr/share/mime 7.9 - xdg-icon-resource install --context mimetypes \ 7.10 + chroot "$1/" update-desktop-database 7.11 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 7.12 + chroot "$1/" xdg-icon-resource install --context mimetypes \ 7.13 --size 64 /usr/share/pixmaps/zim.png application-x-zim-notebook 7.14 status 7.15 }