[softwaremgmt] Software Center
Hi, I was trying to figure out what is missing to get the software center in a "usable" state now that coolo added the metadata to the repositories. http://en.opensuse.org/openSUSE:GSOC_2011/SoftwareCenter - I copied http://download.opensuse.org/factory/repo/oss/suse/setup/descr/appdata.xml to data/app-stream - installed gnome-packagekit intltool python-distutils-extra po4a python-piston-mini After editing the Gtk css files I can make the app to start. However I have been unable to get this step: ./utils/update-software-center --appstream-only --local to succeed. Anyone has? -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-softwaremgmt+owner@opensuse.org
Le jeudi 01 mars 2012, à 17:29 +0100, Duncan Mac-Vicar P. a écrit :
Hi,
I was trying to figure out what is missing to get the software center in a "usable" state now that coolo added the metadata to the repositories.
http://en.opensuse.org/openSUSE:GSOC_2011/SoftwareCenter
- I copied http://download.opensuse.org/factory/repo/oss/suse/setup/descr/appdata.xml to data/app-stream - installed gnome-packagekit intltool python-distutils-extra po4a python-piston-mini
After editing the Gtk css files I can make the app to start. However I have been unable to get this step:
./utils/update-software-center --appstream-only --local
to succeed. Anyone has?
It works (or at least, worked) with a much smaller appdata.xml. But with the Factory one, it doesn't. I've looked very quickly, and we need some major rework there as it apparently queries packagekit for all applications, and it takes something like 1 or 2 seconds per application. So it's extremely slow, and on top of that, packagekitd blows up after a while (with what looks like a memory leak going on). Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-softwaremgmt+owner@opensuse.org
On 03/01/2012 05:39 PM, Vincent Untz wrote:
Le jeudi 01 mars 2012, à 17:29 +0100, Duncan Mac-Vicar P. a écrit :
I was trying to figure out what is missing to get the software center in a "usable" state now that coolo added the metadata to the repositories.
http://en.opensuse.org/openSUSE:GSOC_2011/SoftwareCenter
- I copied http://download.opensuse.org/factory/repo/oss/suse/setup/descr/appdata.xml to data/app-stream - installed gnome-packagekit intltool python-distutils-extra po4a python-piston-mini
After editing the Gtk css files I can make the app to start. However I have been unable to get this step:
./utils/update-software-center --appstream-only --local
to succeed. Anyone has?
It works (or at least, worked) with a much smaller appdata.xml. But with the Factory one, it doesn't.
I've looked very quickly, and we need some major rework there as it apparently queries packagekit for all applications, and it takes something like 1 or 2 seconds per application. So it's extremely slow, and on top of that, packagekitd blows up after a while (with what looks like a memory leak going on).
I was reading softwarecenter/db/update.py and it looks like it parses the appdata.xml and writes the xapian database. What query does it then to PackageKit? -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-softwaremgmt+owner@opensuse.org
Le vendredi 02 mars 2012, à 10:41 +0100, Duncan Mac-Vicar P. a écrit :
On 03/01/2012 05:39 PM, Vincent Untz wrote:
I've looked very quickly, and we need some major rework there as it apparently queries packagekit for all applications, and it takes something like 1 or 2 seconds per application. So it's extremely slow, and on top of that, packagekitd blows up after a while (with what looks like a memory leak going on).
I was reading softwarecenter/db/update.py and it looks like it parses the appdata.xml and writes the xapian database. What query does it then to PackageKit?
For each application in the xml, we have a package name. And for each package name, the codes calls: - resolve (to get a packageid, so we know the package exists) - get_details (to get a description of the package) That's really this code, from index_app_info_from_parser: # add data from the apt cache if pkgname in cache and cache[pkgname].candidate: s = cache[pkgname].candidate.summary term_generator.index_text_without_positions(s, WEIGHT_APT_SUMMARY) s = cache[pkgname].candidate.description term_generator.index_text_without_positions(s, WEIGHT_APT_DESCRIPTION) Using cache[pkgname].candidate and cache[pkgname].candidate.description actually triggers functions to fetch those properties. It's also worth noting that the "if pkgname in cache" is mis-implemented in the packagekit backend, since it returns true, unless a previous lookup for the package failed... Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-softwaremgmt+owner@opensuse.org
participants (2)
-
Duncan Mac-Vicar P.
-
Vincent Untz