[packagekit] app-install

Richard Hughes hughsient at gmail.com
Mon Aug 30 12:08:34 PDT 2010


On 30 August 2010 19:47, Daniel Nicoletti <dantti85-pk at yahoo.com.br> wrote:
> when are you planning to come back from your holidays? :P

Tomorrow.

> I hope soon, today I started playing with app-install and after
> finally making it work I concluded that the tools you wrote
> need to be rewritten.

Heh.

> I can see 3 problems:
>  - Calling app-install-generate for each .desktop file is the main cause
>   of the huge timing.

Sure, you're not meant to, that's done by the packager, once.

>  - After fixing the above issue the insert queries must be prepared for faster
>   execution
>  - And the file should not be stored in a hash table, it should instead process
>   line by line to avoid allocating memory which is expensive.

See above.

> As I don't know when will you get back and I really need this soon to try
> getting it into kubuntu, I'll start codding now, if you have a better idea
> please reply so we can make a good app-install v2 :D

The idea is you have a system app-install database that is installed
and managed by packages. You don't ever have to generate the sqlite
files youself, that's the job of the distro package maintainer. You
just have to query the system database using sqlite C API or one of
it's bindings.

Grab me on IRC tomorrow and I'll walk you through the design in more detail.

Richard.



More information about the PackageKit mailing list