import sources
This commit is contained in:
parent
7188d0dfec
commit
2bf8f5acca
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,2 +1,8 @@
|
||||
SOURCES/desktop-file-utils-0.26.tar.xz
|
||||
desktop-file-utils-0.16.tar.bz2
|
||||
/desktop-file-utils-0.18.tar.bz2
|
||||
/desktop-file-utils-0.19.tar.xz
|
||||
/desktop-file-utils-0.20.tar.xz
|
||||
/desktop-file-utils-0.21.tar.xz
|
||||
/desktop-file-utils-0.22.tar.xz
|
||||
/desktop-file-utils-0.23.tar.xz
|
||||
/desktop-file-utils-0.26.tar.xz
|
||||
|
26
desktop-file.prov
Normal file
26
desktop-file.prov
Normal file
@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user