# HG changeset patch # User Pascal Bellard # Date 1332771500 -7200 # Node ID 0a6b5118575aaf9c8dd82d74f39f9114f3a235f1 # Parent 329bc88c9d170acfb83ff88e812feb937ceafff3 bluefish, libfm, obconf, pcmanfm, shared-mime-info, xournal, zim: fix update-mime-database post_install diff -r 329bc88c9d17 -r 0a6b5118575a bluefish/receipt --- a/bluefish/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/bluefish/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -35,5 +35,5 @@ # Post-install commands post_install() { - $1/usr/bin/update-mime-database $1/usr/share/mime || continue + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime } diff -r 329bc88c9d17 -r 0a6b5118575a libfm/receipt --- a/libfm/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/libfm/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -45,5 +45,5 @@ { # update mime-cache echo "Updating mime-types database" - update-mime-database $1/usr/share/mime + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime } diff -r 329bc88c9d17 -r 0a6b5118575a obconf/receipt --- a/obconf/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/obconf/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -40,7 +40,5 @@ # Update mime database. post_install() { - local root - root=$1 - update-mime-database $root/usr/share/mime || continue + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime } diff -r 329bc88c9d17 -r 0a6b5118575a pcmanfm/receipt --- a/pcmanfm/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/pcmanfm/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -56,5 +56,5 @@ { # update mime-cache echo "Updating mime-types database" - update-mime-database $1/usr/share/mime + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime } diff -r 329bc88c9d17 -r 0a6b5118575a shared-mime-info/receipt --- a/shared-mime-info/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/shared-mime-info/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -33,5 +33,5 @@ # Update mime database. post_install() { - $1/usr/bin/update-mime-database $1/usr/share/mime || continue + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime } diff -r 329bc88c9d17 -r 0a6b5118575a xournal/receipt --- a/xournal/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/xournal/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -37,9 +37,9 @@ post_install() { echo -n "Updating databases..." - update-desktop-database - update-mime-database /usr/share/mime - gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null + chroot "$1/" update-desktop-database + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime + chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null status } diff -r 329bc88c9d17 -r 0a6b5118575a zim/receipt --- a/zim/receipt Mon Mar 26 15:56:49 2012 +0200 +++ b/zim/receipt Mon Mar 26 16:18:20 2012 +0200 @@ -30,9 +30,9 @@ { echo -n "Processing post-install commands..." # Create mimeinfo.cache in /usr/share/applications - update-desktop-database - update-mime-database /usr/share/mime - xdg-icon-resource install --context mimetypes \ + chroot "$1/" update-desktop-database + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime + chroot "$1/" xdg-icon-resource install --context mimetypes \ --size 64 /usr/share/pixmaps/zim.png application-x-zim-notebook status }