Bug 453324 - PackageKit -- can't review updates
PackageKit -- can't review updates
Product: Fedora
Classification: Fedora
Component: PackageKit (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Robin Norwood
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-29 14:01 EDT by Steven Whetzel
Modified: 2008-10-15 21:35 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-10-15 21:35:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Steven Whetzel 2008-06-29 14:01:34 EDT
PackageKit gives error messages when reviewing updates

Steps to Reproduce:
1.  Wait for an available update
2.  Click PackageKit Icon and choose Show updates
3.  Click Review button

all messages are similar, here's an example:

Comment 1 Richard Hughes 2008-06-30 03:15:06 EDT
Can you try:

yum update yum PackageKit gnome-packagekit

and then try again please. Thanks.
Comment 2 Steven Whetzel 2008-06-30 22:22:00 EDT
Done.  Result -- No Packages marked for Update
Comment 3 Richard Hughes 2008-07-04 06:04:17 EDT
Right, this is coming from inside of yum, I'll re-assign. Out of interest, whats
the output of "rpm -qa | grep yum"? Thanks.
Comment 4 Jan Hutař 2008-07-08 04:28:20 EDT
Maybe this one is another duplicate of bug 447347?

Could you please provide output of:

  $ rpm -qa | grep -e yum -ie PackageKit

I have these versions and "Review" of a recent squid advisory works as expected.

Comment 5 Steven Whetzel 2008-07-30 22:52:45 EDT
Package Kit was updated today.  So I'll have to wait to see if this keeps happening:

$ rpm -qa | grep yum

$ rpm -qa | grep -e yum -ie PackageKit

Sorry I took so long to reply. 
Comment 6 Steven Whetzel 2008-07-31 22:42:41 EDT
Sure enough: 8 updates pending

A problem that we were not expecting has occurred.  Please report this bug at
https://bugs.freedesktop.org/ with the error description.

Error Type: <type 'exceptions.AttributeError'>
Error Value: Updates instance has no attribute 'obsoletes'
  File : /usr/share/PackageKit/helpers/yum/get-update-detail.py , line 17, in
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 1491, in
    obsolete = self._get_obsoleted(pkg.name)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 1401, in
    obsoletes = self.yumbase.up.getObsoletesTuples(newest=1)
  File : /usr/lib/python2.5/site-packages/rpmUtils/updates.py , line 568, in
    obslist = self.obsoletes.keys()
Comment 7 James Antill 2008-08-07 15:57:23 EDT
 I'm reassigning this back to packagekit unless someone can reproduce with the yum cmd line.
Comment 8 Richard Hughes 2008-08-18 04:56:58 EDT
James -- PackageKit is just using the yum API -- I guess the cli isn't using this part of the API, but it still should work. I don't think reassigning to the application that uses the library is the right thing to do when the library goes pop.
Comment 9 Steven Whetzel 2008-08-18 11:41:11 EDT
I'm not sure exactly what was wrong.  I switched to Fedora Core 8 for a while and later reinstalled 9.  This problem did not occur then.  The only thing that I did differently was removing gcj and mono.  Could the problem that I described have been related to that or simply a fluke?  I have since started using Kubuntu so, I won't be able to offer any more feedback.
Comment 10 James Antill 2008-08-18 15:48:12 EDT
 Richard, if it's a bug in yum I'll be happy to fix it. But the above doesn't look like such.

 From __init__.py:

    up = property(fget=lambda self: self._getUpdates(),

...which then calls:

_up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())

...and rpmUtils.updates.Updates has a getObsoletesTuples() (and the yum cmd line uses it, so it does work).

 I can only assume PK has done something weird/different that breaks part of the above.

 If you are stuck I'd be happy to help, if there's some kind of reproducer or way to get data ... but atm. it's at least as likely to be PK as yum, from what I can see.
Comment 11 Richard Hughes 2008-10-09 12:39:33 EDT
Steven, does this still happen with the latest PackageKit and yum packages installed?
Comment 12 Steven Whetzel 2008-10-15 21:35:23 EDT
Hey all.  Closing this bug.  I've switched to Kubuntu.  This did not happen when I reinstalled Fedora 9.  Thanks for all the interest.

Note You need to log in before you can comment on or make changes to this bug.