Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-14 Thread Richard Hughes
On 8 October 2013 10:52, Panu Matilainen wrote: >> Another possibility could be actually emitting a provide for all types, >> based on the value name, eg Link would get a link() provide etc. And >> thinking about that makes me think perhaps these provides should be >> namespaced somehow, eg deskto

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-14 Thread Panu Matilainen
On 10/09/2013 02:40 PM, Michael Schroeder wrote: On Wed, Oct 09, 2013 at 02:25:43PM +0300, Panu Matilainen wrote: I've no clue about the AppData part (what it contains or how it would be used)... It can be used to link appdata.xml contents to packages withour needing to retrieve the complete f

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-09 Thread Michael Schroeder
On Wed, Oct 09, 2013 at 02:25:43PM +0300, Panu Matilainen wrote: > I've no clue about the AppData part (what it contains or how it would be > used)... It can be used to link appdata.xml contents to packages withour needing to retrieve the complete filelist. Cheers, Michael. -- Michael Schroe

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-09 Thread Panu Matilainen
On 10/08/2013 12:55 PM, Richard Hughes wrote: On 8 October 2013 10:52, Panu Matilainen wrote: Another possibility could be actually emitting a provide for all types, based on the value name, eg Link would get a link() provide etc. And thinking about that makes me think perhaps these provides sh

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-08 Thread Panu Matilainen
On 10/04/2013 03:31 PM, Panu Matilainen wrote: On 10/04/2013 03:01 PM, Michael Schroeder wrote: On Wed, Oct 02, 2013 at 07:32:26PM -0400, Colin Walters wrote: + echo "application()" + echo "application(${instfile##*/applications/})" if ! grep -q '^Ty

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-04 Thread Panu Matilainen
On 10/04/2013 03:01 PM, Michael Schroeder wrote: On Wed, Oct 02, 2013 at 07:32:26PM -0400, Colin Walters wrote: + echo "application()" + echo "application(${instfile##*/applications/})" if ! grep -q '^Type=Application$' "$instfile"; then continue; fi

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-04 Thread Michael Schroeder
On Wed, Oct 02, 2013 at 07:32:26PM -0400, Colin Walters wrote: > + echo "application()" > + echo "application(${instfile##*/applications/})" > if ! grep -q '^Type=Application$' "$instfile"; then continue; > fi > if ! grep -q '^Exec=' "$in

Re: [Rpm-maint] Add appdata() and application() auto-provides

2013-10-02 Thread Colin Walters
+ echo "application()" + echo "application(${instfile##*/applications/})" if ! grep -q '^Type=Application$' "$instfile"; then continue; fi if ! grep -q '^Exec=' "$instfile"; then continue; fi Shouldn't these pairs of lines be swapped, so

[Rpm-maint] Add appdata() and application() auto-provides

2013-10-02 Thread Michael Schroeder
Hi Panu et al, attached are two patches that make rpm automatically add provides for .desktop files in /usr/share/applications and AppStream appdata files in /usr/share/appdata. They are intended to make it easy to - enumerate all applications by querying for appdata() or application() - creat