[packagekit] yum backend returning both installed and available
hughsient at gmail.com
Mon Oct 1 15:52:46 PDT 2007
I'm not sure how to solve this:
[hughsie at hughsie-laptop PackageKit]$ pkcon search name evince
evince 2.20.0-2.fc8 i386 installed Document viewer
evince 2.20.0-2.fc8 i386 development Document viewer
evince-debuginfo 2.20.0-2.fc8 i386 development-debuginfo Debug information for package evince
Runtime was 3 seconds
We shouldn't show the evince package in development if we have a locally
installed package of that name with the same version - it's not like we
can install the second evince as it _is_ the first package.
I could filter this in the server, but that means making the method
synchronous, which isn't really an option.
Could the yum backend perhaps keep a list of the package_id's (without
the data) and check the list before emitting a new package? This should
be done for each iteration, rather than at the end to keep the method
call from blocking without results.
Does this make sense? It's been a long day so apologies if this could be
More information about the PackageKit