[packagekit] Do we need a Resolve() method?

Richard Hughes hughsient at gmail.com
Fri Sep 21 11:21:06 PDT 2007

On Fri, 2007-09-21 at 18:39 +0000, Grzegorz Dąbrowski wrote:
> On Fri, 2007-09-21 at 00:18 +0100, Richard Hughes wrote:
> > I think we need a Resolve() method that can take "openoffice-clipart"
> > and turn it into "openoffice-clipart;1.234;i386;fedora" for the
> > circumstance that we know the _exact_ package name "openoffice-clipart"
> > but want to find the package_id so we can install it.
> > 
> > This would let other programs just install using a simple client side
> > resolve and then install, rather than having to hardcode a packageid, or
> > get the backends to decode a partial package_id. It also lets us do
> > "pkcon install openoffice" rather than using the packageid. Comments?
> +1

I've added this. Backend dudes should make this a priority to implement
this. It's basically a search-name that doesn't do any wildcarding, so
if you pass this openoffice-clipart it just emits a Package

I'm going to add a nice library to make one library call do the resolve
and then action so it can be a fire and forget for stuff like OpenOffice
to add.



More information about the PackageKit mailing list