Bug 439680

Summary: gnome-packagekit shows installed packages as both installed & uninstalled
Product: [Fedora] Fedora Reporter: Basil Mohamed Gohar <me>
Component: gnome-packagekitAssignee: Robin Norwood <robin.norwood>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jwest, richard, sundaram, tim.lauridsen, vfiend
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-04 07:13:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Basil Mohamed Gohar 2008-03-30 11:32:21 UTC
Description of problem:
In the Add/Remove Software application (pk-application?), gnome-packagekit shows
all installed packages twice in the listing - once as installed, and once again
as uninstalled.  If installed packages are filtered out, then the uninstalled
"versions" of these installed packages are still shown, and, of course,
installing them will result in pk reporting "no packages were installed".


Version-Release number of selected component (if applicable):
gnome-packagekit 0.1.10

How reproducible:
Every time

Steps to Reproduce:
1. Start Add/Remove Software application
2. View listing and optionally refresh
3. Profit?
  
Actual results:
Lists all packages, installed & uninstalled, with the installed packages
appearing as both installed & uninstalled

Expected results:
All packages should be listed, with the installed packages (assuming they are
not filtered), only appear once, and appearing as installed (i.e., not dull)


Additional info:

Comment 1 Richard Hughes 2008-03-30 15:46:04 UTC
packagekitd is actually doing the right thing here, as we asking for all
installed and available packages. If the yum backend supported NEWEST then only
the installed package would be shown. Robin, are you able to look at the NEWEST
filter when you return?

Comment 2 Richard Hughes 2008-03-30 16:48:16 UTC
*** Bug 439696 has been marked as a duplicate of this bug. ***

Comment 3 Basil Mohamed Gohar 2008-03-30 16:50:05 UTC
Richard,

I don't know if this how PackageKit is supposed to work, but yum does allow
filtering by what is installed, so, it is perhaps possible to filter these out
from the entire available list.  I know, for example, yumex does this, but I
don't know how helpful that is...

Thanks for all your hard work and expediency in responding to bugs.

Comment 4 Richard Hughes 2008-03-30 19:25:06 UTC
Basil, if you just want to filter the installed packages you can just click
Filters->Installed->Only Installed in pk-application.


Comment 5 Richard Hughes 2008-03-31 12:22:00 UTC
*** Bug 439782 has been marked as a duplicate of this bug. ***

Comment 6 Jeremy West 2008-04-04 05:40:48 UTC
Richard,

I think you're missing the point ... lol.  I'm glad that packagekit is showing
both installed and available packages, however I think the bug being referenced
here is in pk-application.  Try to think about this from the customer's
prospective.  What we have is confusion.  The customer installs a package and
then suddenly sees two packages with the same list.  They think to themselves,
did I install it correctly?  So they click the "greyed" out package (duplicate)
and try to install that and get a "no packages installed" message. 

Regarding comment #4, if I filter out the installed packages, then I should
*ONLY* have packages that are available to install.  Which ... is not the case
with this bug.  One of the duplicate entries stays in the list.  

Once again, there's nothing wrong with the backend, but we really need to
rethink what's going on on the frontend, otherwise all the hard work that was
put into packagekit is going to mean nothing, because customers are going to
install this and say, "this is crap"

--jwest

Comment 7 Jeremy West 2008-04-04 05:47:01 UTC
Isn't this a dup of BZ 440122?

--jwest

Comment 8 Richard Hughes 2008-04-04 07:13:16 UTC
Yup, and I learned python!

*** This bug has been marked as a duplicate of 440122 ***

Comment 9 Jeremy West 2008-04-06 04:42:26 UTC
Richard, can we expect to see this in rawhide and fedora 9 beta updates anytime
soon?