[packagekit] yum backend returning both installed and available

Richard Hughes hughsient at gmail.com
Mon Oct 1 16:19:52 PDT 2007


On Tue, 2007-10-02 at 01:12 +0200, Tom Parker wrote:
> Couldn't the package signal function wrapper (pk_backend_package?
> Can't remember offhand and too lazy to look it up) do the filtering?
> Otherwise what you're currently proposing would require separate
> filtering code in each and every backend...
> 
> I doubt making that method delay by a few more milliseconds to check
> against a list of packages outputted so far (hashlist with const
> char's package names mapping to lists of versions is probably most
> efficient) is going to slow down clients that much, but making the
> code there rather than in the backends sounds more sane to me.

Yes, you're absolutely correct, although it means me doing the package
storage logging properly (moral of the story: bodges always come back to
haunt you...)

I'll add this to the TODO. I'll try to do this tomorrow. Thanks.

Richard.




More information about the PackageKit mailing list