Bug 28631 - Packagekit doesn't work with portage 2.1.8.3
Summary: Packagekit doesn't work with portage 2.1.8.3
Status: RESOLVED INVALID
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-20 16:24 UTC by lmedinas@gmail.com
Modified: 2014-04-02 11:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lmedinas@gmail.com 2010-06-20 16:24:33 UTC
I get this when i start gpk-update-viewer:


Error Type: <type 'exceptions.AttributeError'>
Error Value: 'list' object has no attribute 'split'
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 1889, in <module>
    main()
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 1886, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib64/python2.6/site-packages/packagekit/backend.py, line 723, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib64/python2.6/site-packages/packagekit/backend.py, line 610, in dispatch_command
    self.get_updates(filters)
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 1150, in get_updates
    fltlist = filters.split('
')

The same happen when i try with portage 2.2_rc67
Comment 1 lmedinas@gmail.com 2010-06-20 16:25:57 UTC
Also got this error when i try to install a new package:


Error Type: <type 'exceptions.KeyError'>
Error Value: 'EAPI'
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 1889, in <module>
    main()
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 1886, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib64/python2.6/site-packages/packagekit/backend.py, line 734, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib64/python2.6/site-packages/packagekit/backend.py, line 581, in dispatch_command
    self.get_details(package_ids)
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 960, in get_details
    self._get_size(cpv))
  File : /usr/share/PackageKit/helpers/portage/portageBackend.py, line 528, in _get_size
    metadata=metadata)
  File : /usr/lib64/portage/pym/_emerge/Package.py, line 53, in __init__
    self.masks = self._masks()
  File : /usr/lib64/portage/pym/_emerge/Package.py, line 66, in _masks
    eapi = self.metadata["EAPI"]
  File : /usr/lib64/portage/pym/_emerge/Package.py, line 262, in __getitem__
    v = _PackageMetadataWrapperBase.__getitem__(self, k)
  File : /usr/lib64/portage/pym/portage/cache/mappings.py, line 447, in __getitem__
    raise KeyError(k)
Comment 2 Richard Hughes 2010-06-23 02:29:09 UTC
I don't think the portage backend is maintained much in PackageKit. If you could generate a patch and send it to the mailing list I would gladly commit it for you. Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.