[packagekit] Resolve method

Richard Hughes hughsient at gmail.com
Tue Oct 2 09:32:11 PDT 2007


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)

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.

Richard.





More information about the PackageKit mailing list