2 # This helper updates shared-mime-info's database when a template
3 # requests this operation.
5 updatemimedb_cmd
="$PKGFS_MASTERDIR/bin/update-mime-database"
6 updatemimedb_dir
="$PKGFS_MASTERDIR/share/mime"
8 if [ -d "$PKGFS_MASTERDIR/share/mime" ]; then
9 $updatemimedb_cmd $updatemimedb_dir >/dev
/null
&& \
10 echo "=> Updated shared-mime-info database."
13 unset updatemimedb_cmd updatemimedb_dir