[Rpm-maint] Rally: minor API requests

Michael Schroeder mls at suse.de
Tue Nov 13 11:44:53 UTC 2007


On Tue, Nov 13, 2007 at 12:42:46PM +0100, Michael Schroeder wrote:
> Here's another idea I use in my little installer project: add
> an interface that returns all database ids of all installed
> packages (i.e. the numbers that you specify with --querybynumber).
> With that information you can easily retrieve just the changed
> packages from the rpm database.

I forgot a little detail: the ids of all installed packages can
be calculated in a very fast way by just reading the Name database
index.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}



More information about the Rpm-maint mailing list