2008-10-10 19:14:25 +02:00
|
|
|
#
|
|
|
|
# This helper updates shared-mime-info's database when a template
|
|
|
|
# requests this operation.
|
|
|
|
#
|
2008-10-13 07:32:05 +02:00
|
|
|
updatemimedb_cmd="$XBPS_MASTERDIR/bin/update-mime-database"
|
|
|
|
updatemimedb_dir="$XBPS_MASTERDIR/share/mime"
|
2008-10-10 19:14:25 +02:00
|
|
|
|
2008-10-13 07:32:05 +02:00
|
|
|
if [ -d "$XBPS_MASTERDIR/share/mime" ]; then
|
2008-10-10 19:14:25 +02:00
|
|
|
$updatemimedb_cmd $updatemimedb_dir >/dev/null && \
|
|
|
|
echo "=> Updated shared-mime-info database."
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset updatemimedb_cmd updatemimedb_dir
|