# HG changeset patch # User Pascal Bellard # Date 1333004211 -7200 # Node ID 6c19eff18a07d2dbb5039422430803ee8795d5bc # Parent 11d71c5ac20a170ab597a35ec03ced77576dc0ae tazpkg: fix update-mime-database post_install diff -r 11d71c5ac20a -r 6c19eff18a07 tazpkg --- a/tazpkg Wed Mar 28 21:44:05 2012 +0000 +++ b/tazpkg Thu Mar 29 08:56:51 2012 +0200 @@ -1381,28 +1381,28 @@ update_desktop_database() { if [ -f $1/usr/bin/update-desktop-database ] && [ -n "$updatedesktopdb" ]; then - $1/usr/bin/update-desktop-database $1/usr/share/applications 2>/dev/null + chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications 2>/dev/null fi } update_mime_database() { if [ -f $1/usr/bin/update-mime-database ] && [ -n "$updatemimedb" ]; then - $1/usr/bin/update-mime-database $1/usr/share/mime + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime fi } update_icon_database() { if [ -f $1/usr/bin/gtk-update-icon-cache ] && [ -n "$updateicondb" ]; then - $1/usr/bin/gtk-update-icon-cache $1/usr/share/icons/hicolor + chroot "$1/" /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor fi } compile_glib_schemas() { if [ -f $1/usr/bin/glib-compile-schemas ] && [ -n "$compile_schemas" ]; then - $1/usr/bin/glib-compile-schemas $1/usr/share/glib-2.0/schemas + chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas fi }