xbps-src: autodetect mimedb automatically.

This commit is contained in:
Juan RP 2011-10-05 10:29:57 +02:00
parent 007dee61c1
commit 37967a549d
1 changed files with 9 additions and 0 deletions

View File

@ -240,6 +240,15 @@ _EOF
fi
fi
#
# Handle mime database in /usr/share/mime with update-mime-database.
#
if [ -d ${DESTDIR}/usr/share/mime ]; then
if find ${DESTDIR}/usr/share/mime -type f -name \*.xml 2>&1 >/dev/null; then
_add_trigger mimedb
fi
fi
# End of trigger var exports.
echo >> $tmpf