Added shared-mime-info-0.51 template and its related helper.
--HG-- extra : convert_revision : 16763dc3fcd2361fef5ba0560c57a46b45333677
This commit is contained in:
parent
54139e95fb
commit
259900136c
4 changed files with 49 additions and 0 deletions
13
helper-templates/update-mimedb.sh
Executable file
13
helper-templates/update-mimedb.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# This helper updates shared-mime-info's database when a template
|
||||
# requests this operation.
|
||||
#
|
||||
updatemimedb_cmd="$PKGFS_MASTERDIR/bin/update-mime-database"
|
||||
updatemimedb_dir="$PKGFS_MASTERDIR/share/mime"
|
||||
|
||||
if [ -d "$PKGFS_MASTERDIR/share/mime" ]; then
|
||||
$updatemimedb_cmd $updatemimedb_dir >/dev/null && \
|
||||
echo "=> Updated shared-mime-info database."
|
||||
fi
|
||||
|
||||
unset updatemimedb_cmd updatemimedb_dir
|
Loading…
Add table
Add a link
Reference in a new issue