Bug 19781 - Handles rpm error message poorly
Summary: Handles rpm error message poorly
Status: RESOLVED INVALID
Alias: None
Product: PackageKit
Classification: Unclassified
Component: backend-yum (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 06:40 UTC by william.jon.mccann
Modified: 2012-01-05 10:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to workaround insanity (998 bytes, patch)
2009-01-28 08:12 UTC, Richard Hughes
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description william.jon.mccann 2009-01-28 06:40:14 UTC
Here's the yum output:
Running Transaction

[('installing package kernel-2.6.27.12-78.2.8.fc9.i686 needs 730KB on the /boot filesystem', (9, '/boot', 747520L))]


PackageKit displays a dialog with this in it:
An internal system error has occurred

And under More details:
Error Type: <type 'exceptions.TypeError'>
Error Value: sequence item 0: expected string, tuple found
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2280, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2277, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 578, in dispatch_command
    self.update_system()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1105, in update_system
    self._runYumTransaction(allow_skip_broken=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1534, in _runYumTransaction
    message = _format_msgs(ye.value)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 170, in _format_msgs
    text = "
".join(msgs)
Comment 1 Richard Hughes 2009-01-28 08:09:57 UTC
(In reply to comment #0)
> Running Transaction
> [('installing package kernel-2.6.27.12-78.2.8.fc9.i686 needs 730KB on the /boot
> filesystem', (9, '/boot', 747520L))]

You actually get this on the command line? What version yum? If this is the case, yum seems very busted to me.

Richard.
Comment 2 Richard Hughes 2009-01-28 08:12:00 UTC
Created attachment 22308 [details] [review]
patch to workaround insanity

Can you try applying this patch? You can copy it directly into /usr/share/PackageKit/helpers/yum/yumBackend.py if you don't have a checkout handy. Thanks dude.
Comment 3 william.jon.mccann 2009-01-28 08:57:23 UTC
The message is actually from RPM originally.  Also see:
https://bugzilla.redhat.com/show_bug.cgi?id=460146
Comment 4 Richard Hughes 2009-01-29 00:15:08 UTC
Where do the brackets come from?

('installing package kernel-2.6.27-0.290.rc5.fc10.i686 needs 2MB on the /boot
filesystem', (9, '/boot', 2012160L))

I guess python is parsing this as structure.
Comment 5 Jean-François Fortin Tam 2012-01-05 10:15:17 UTC
Hi there,
This particular bug needs additional information to fix the bug. Please test the latest version of PackageKit and see if it fixes your problem. If it does not, please provide additional information to help the developers.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.