tazpkg rev 578
tazpkg: fix update-mime-database post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 29 08:56:51 2012 +0200 (2012-03-29) |
parents | 11d71c5ac20a |
children | 7d8d81c885c3 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Wed Mar 28 21:44:05 2012 +0000 1.2 +++ b/tazpkg Thu Mar 29 08:56:51 2012 +0200 1.3 @@ -1381,28 +1381,28 @@ 1.4 update_desktop_database() 1.5 { 1.6 if [ -f $1/usr/bin/update-desktop-database ] && [ -n "$updatedesktopdb" ]; then 1.7 - $1/usr/bin/update-desktop-database $1/usr/share/applications 2>/dev/null 1.8 + chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications 2>/dev/null 1.9 fi 1.10 } 1.11 1.12 update_mime_database() 1.13 { 1.14 if [ -f $1/usr/bin/update-mime-database ] && [ -n "$updatemimedb" ]; then 1.15 - $1/usr/bin/update-mime-database $1/usr/share/mime 1.16 + chroot "$1/" /usr/bin/update-mime-database /usr/share/mime 1.17 fi 1.18 } 1.19 1.20 update_icon_database() 1.21 { 1.22 if [ -f $1/usr/bin/gtk-update-icon-cache ] && [ -n "$updateicondb" ]; then 1.23 - $1/usr/bin/gtk-update-icon-cache $1/usr/share/icons/hicolor 1.24 + chroot "$1/" /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor 1.25 fi 1.26 } 1.27 1.28 compile_glib_schemas() 1.29 { 1.30 if [ -f $1/usr/bin/glib-compile-schemas ] && [ -n "$compile_schemas" ]; then 1.31 - $1/usr/bin/glib-compile-schemas $1/usr/share/glib-2.0/schemas 1.32 + chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 1.33 fi 1.34 } 1.35