From 56699101dec027590cca137a5d268fbc88799121 Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Wed, 2 Oct 2013 15:02:18 +0200
Subject: [PATCH 2/3] Add application() and application(filename) provides for
 desktop files.

Gnome software center needs to know what package to deinstall if it
needs to deinstall a desktop application. Looking up provides it much
cheaper than looking up which package owns a file.

We also add an empty application() provides to make it easy to
enumerate all packages containing desktop applications.
---
 scripts/desktop-file.prov | 2 ++
 1 file changed, 2 insertions(+)

diff --git scripts/desktop-file.prov scripts/desktop-file.prov
index 5b159ae..aa20277 100755
--- scripts/desktop-file.prov
+++ scripts/desktop-file.prov
@@ -9,6 +9,8 @@ OLD_IFS="$IFS"
 while read instfile ; do
 	case "$instfile" in
 	*.desktop)
+		echo "application()"
+		echo "application(${instfile##*/applications/})"
 		if ! grep -q '^Type=Application$' "$instfile"; then continue; fi
 		if ! grep -q '^Exec=' "$instfile"; then continue; fi
 		mime=`grep '^MimeType=' "$instfile" | cut -d'=' -f2`
-- 
1.8.1.4