[packagekit] Resolve method

Elliot Peele elliot at bentlogic.net
Tue Oct 2 11:16:26 PDT 2007

On Tue, 2007-10-02 at 17:32 +0100, Richard Hughes wrote:
> On Tue, 2007-10-02 at 12:24 -0400, Robin Norwood wrote:
> > What about arch?  In situations where more than one arch is available,
> > IIRC, yum uses a complicated heuristic to try to 'guess' the right one.
> > Should individual backends to the guessing, or return multiple results
> > to let PK or the user pick the right one?  Do you always want Resolve to
> > give one or zero results, or is a list ok in some cases?
> Well, Resolve should return:
> zero (if not installed and not found in the repo)
> one (in installed version matches and no never package available)
> two (if installed version matches, and there is an updated package
> available)

What should we return if not installed but found in repo?

> I think the backend should choose the correct architecture, I don't
> really think this is in the scope of PK - leave it to the package
> backend.

The problem with not knowing what arch is if OpenOffice.org is 32bit on
a 64bit system requests that a package be installed, conary will want to
install a 64bit package, which won't work for OpenOffice.org.


More information about the PackageKit mailing list