Bug 443913

Summary: cannot install updates
Product: [Fedora] Fedora Reporter: Matthias Clasen <mclasen>
Component: PackageKitAssignee: Robin Norwood <robin.norwood>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: lmacken, richard, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-24 14:06:44 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:
Bug Depends On:    
Bug Blocks: 441857    

Description Matthias Clasen 2008-04-24 02:50:39 UTC
Installing updates individually from gpk-update-viewer fails with the following
error message:

An internal system error has occurred

A problem that we were not expecting has occurred.
Please report this bug with the error description.

Error Type: <type 'exceptions.ValueError'>
Error Value: too many values to unpack
  File : /usr/share/PackageKit/helpers/yum/update.py , line 19, in <module>
    backend.update(packages)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 963, in update
    pkg,inst = self._findPackage(package)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 625, in _findPackage
    (n,idver,a,d) = self.get_package_from_id(id)


This is with 
PackageKit-0.1.12-5.20080423.fc9.i386

Comment 1 Luke Macken 2008-04-24 05:11:17 UTC
Do you happen to have the package id of the update that triggered the exception,
or pkmon output?

Comment 2 Matthias Clasen 2008-04-24 05:16:31 UTC
No, sorry

And I've meanwhile updated the system, so it won't be easy to reproduce. But I
can tell you that I had 13 updates, and they were all f9-final stuff from the
last 1 or 2 days

Comment 3 Richard Hughes 2008-04-24 08:39:00 UTC
I've fixed this in stable yesterday: 5b1f60980c440a73a5498fd22420bfdc7ebc95bb

It was a thinko on my part - I've added a ton of self tests to catch stuff like
this in the future. I'll build a new package for koji and F9.


Comment 4 Robin Norwood 2008-04-24 14:06:44 UTC
This is fixed for me with this build:
http://koji.fedoraproject.org/koji/buildinfo?buildID=47072

Luke, FYI, this was a fun little bug - the PK daemon was sending update.py the
packages all as one argument, like:

./update.py "foo;version;arch;repo bar;version;arch;repo"

instead of each package as one arg, like:

./update.py "foo;version;arch;repo" "bar;version;arch;repo"