[packagekit] Resolve method
Tim Lauridsen
tla at rasmil.dk
Tue Oct 2 03:27:58 PDT 2007
Richard Hughes wrote:
> Guys,
>
> The Resolve() method is important for pk-install-package functionality
> and I consider it a blocker for 0.1.0. It should be trivial to implement
> for most of the backends as it's basically a trivial search that doesn't
> look at other names than the direct name, and errors out if there is
> more than one match.
>
> Yell if you need a hand, or there's lots of info in the docs.
>
> Thanks,
>
> Richard.
>
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>
I have added resolve to the python common backend and implented it in
the yum backend.
I am not sure if it works the right way ??
'resolve foo' will return
all installed packages with the name 'foo' (there kan be more than one,
in some cases ex. 'kernel')
the available package with the name 'foo' and an EVR > all installed
packages ( EVR = epoch:version-release)
Ex. (installed: 'foo-1.0-3', in repo 'foo-1.0-1', 'foo-1.0-2', 'foo-1.0-3')
'resolve foo' will return
package installed foo;1.0-3;i386;updates the foo packages
Ex. (installed: 'foo-1.0-2, in repo 'foo-1.0-1', 'foo-1.0-2', 'foo-1.0-3')
'resolve foo' will return
package installed foo;1.0-2;i386;updates the foo packages
package available foo;1.0-3;i386;updates the foo packages
Ex. (in repo 'foo-1.0-1', 'foo-1.0-2', 'foo-1.0-3')
'resolve foo' will return
package available foo;1.0-3;i386;updates the foo packages
Tim
More information about the PackageKit
mailing list