[Rpm-maint] desktop apps provide patch
Seth Vidal
skvidal at fedoraproject.org
Sun Dec 6 20:41:52 UTC 2009
Trivial patch to the desktop-prov script to add the app(app_name) provide
to pkgs built which contain a .desktop file.
This came up as a discussion between colin walters and I at fudcon in
toronto and this is a pretty easy (and tested) patch to add this provides.
thanks
-sv
-------------- next part --------------
diff --git a/scripts/desktop-file.prov b/scripts/desktop-file.prov
index abb79f9..a2d798e 100755
--- a/scripts/desktop-file.prov
+++ b/scripts/desktop-file.prov
@@ -1,6 +1,7 @@
#!/bin/sh
#
# Transform desktop mimetype info into RPM mimehandler(type) provides
+# Add an app(desktop filename) provides
#
# Author: Richard Hughes <richard at hughsie.com>
# Based on other provides scripts from RPM
@@ -14,6 +15,8 @@ while read instfile ; do
for type in $mime ; do
echo 'mimehandler('$type')'
done
+ appname=`basename $instfile | sed -e "s/\.desktop//"`
+ echo 'app('$appname')'
;;
esac
done
More information about the Rpm-maint
mailing list