desktop-file-utils/desktop-file.prov
Richard Hughes f173f101c9 - Panu merged the rpm bits for this feature, but we've got a new provides
filename. Respin this package with the new name.
2009-02-04 18:01:21 +00:00

27 lines
489 B
Bash

#!/bin/sh
#
# Script to install in:
# /usr/lib/rpm/redhat/find-provides.d
#
# Transform desktop mimetype info into RPM provides
#
# Author: Richard Hughes <richard@hughsie.com>
# Based on other provides scripts from RPM
#
#!/bin/sh
OLD_IFS="$IFS"
while read instfile ; do
case "$instfile" in
*.desktop)
mime=`cat $instfile | grep MimeType | cut -d'=' -f2`
IFS=';'
for type in $mime ; do
echo 'mimetype('$type')'
done
;;
esac
done
IFS=$OLD_IFS