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