[zypp-devel] PackageKit backend

Hey! I'm currently working on a Summer of Code project, which includes adding PackageKit support to Muon (Discover). While my part is almost done, I found a bug in the zypp backend: 1) It reports that it supports the FilterNewest filter, but 2) When I call getPackages() I get all packages and not just the newest. (This can also be reproduced in apper, when just searching for packages, with the option to use the filter enabled.) The other thing I wanted to ask about is the availability of Appstream data in the opensuse repositories. From what I understood, the distributions tools should provide this data (the appdata.xml in your case) in /usr/share/app- info/, but I can only find the categories.xml file there. Can anyone help me with this? Thanks! Lukas PS: Please keep me CCed, as I'm not subscribed to the list!

On Tuesday 20 August 2013 13:08:48 Lukas Appelhans wrote:
Adrian, can you help? (@Lukas: I forwarded the apper/PK bug to https://bugzilla.novell.com/show_bug.cgi?id=838000) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

Am Montag, 2. September 2013, 09:47:23 schrieb Michael Andres:
Coolo may know more here. AFAIK it was only additional data for the repository metadata so far.
(@Lukas: I forwarded the apper/PK bug to https://bugzilla.novell.com/show_bug.cgi?id=838000)
-- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

Am 02.09.2013 10:44, schrieb Adrian Schröter:
The appdata.xml is in the repo and I can't see any reason it should be installed in /usr. It would be pretty static then and not take update repos into account. Greetings, Stephan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

Thanks for the responses so far! I'm have no knowledge about libzypp, where it stores its data and what. Generally, libappstreamcore has to parse this appdata.xml file at some point, to make the information available through its Xapian database. As it does not download anything, the appdata.xml file(s) have to be on disc somewhere for it to use. (That's as far as I understood the concept.) What do you mean by the appdata.xml being "in the repo", is that on my computer somewhere? And generally I need the data not only for installed applications. Muon Discover will only show those applications in the GUI which are contained inside the AppStream files. Thanks again, Lukas El Lunes 02 septiembre 2013 11:43:53 Stephan Kulow escribió:

Am Freitag, 6. September 2013, 09:25:57 schrieb Lukas Appelhans:
It is part of the rpm-md and suse meta data. It is usually on disk in the zypp cache, for example /var/cache/zypp/raw/openSUSE-12.3-1.7/suse/setup/descr/appdata.xml.gz on standard openSUSE 12.3 system. Our in general /var/cache/zypp/raw/*/repodata/*-appdata.xml.gz for some OBS rpm-md repositories.
I hope libzypp offers an interface to access this data, so that you do not need to implement your own parsers for all metadata formats.
-- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

On Friday 06 September 2013 09:33:01 Adrian Schröter wrote:
It's available for susetag repos as well. And only valid in those /raw/* which corespond to actually enabled repos.
Not yet, but we probably can do. Question is what kind of support do we need. Just access to the data or do we think about even integrating this into the solver? -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

On Tue, Aug 20, 2013 at 01:08:48PM +0200, Lukas Appelhans wrote:
If the data is supposed to be in a repository, how can it appear in /usr/share/app-info? Or are you talking about the app data for installed applications? Anyway, the app data for repos is either in suse/setup/descr/appdata.xml.gz (for susetags type repos), or in repodata/<shasum>-appdata.xml.gz (for rpm-md type repos, data type "appdata" in repomd.xml). Libzypp already downloads it, but I don't think it has an interface to access it. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (5)
-
Adrian Schröter
-
Lukas Appelhans
-
Michael Andres
-
Michael Schroeder
-
Stephan Kulow