Summary: | portage-2.1.1-r2 - TypeError: unsubscriptable object when updating konq-plugins | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Silver Juurik <silverjuurik> |
Component: | Core - Dependencies | Assignee: | Portage team <dev-portage> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2.1 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 147007 | ||
Attachments: |
emerge log
contents of my package.* files Prevent the TypeError triggered by blockers |
Description
Silver Juurik
2006-12-10 06:38:13 UTC
Do you have anything in /etc/portage/modules? If so, comment out whatever is in that file (or remove it) and then run `emerge --metadata` /etc/portage/modules does not exist on my system.
emerge --metadata
>>> Updating Portage cache: 100%
emerge -upv konq-plugins
These are the packages that would be merged, in order:
Calculating dependencies... done!
Traceback (most recent call last):
File "/usr/bin/emerge", line 4049, in ?
emerge_main()
File "/usr/bin/emerge", line 4044, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 3541, in action_build
mydepgraph.display(mydepgraph.altlist())
File "/usr/bin/emerge", line 1427, in display
pkgsettings.setcpv(pkg_key)
File "/usr/lib/portage/pym/portage.py", line 1396, in setcpv
self.pusekey = best_match_to_list(self.mycpv, self.pusedict[cp].keys())
File "/usr/lib/portage/pym/portage_dep.py", line 282, in best_match_to_list
for x in match_to_list(mypkg, mylist):
File "/usr/lib/portage/pym/portage_dep.py", line 269, in match_to_list
if match_from_list(x, [mypkg]):
File "/usr/lib/portage/pym/portage_dep.py", line 339, in match_from_list
if xs[0:2] != mycpv_cps[0:2]:
TypeError: unsubscriptable object
You've got an invalid atom somewhere, possibly in /etc/portage/package.use. Please run the following: env FEATURES=python-trace emerge --debug -upv konq-plugins &> debug.log tail -n 2000 debug.log > small.log Please attach the small log. Created attachment 103757 [details]
emerge log
Created attachment 103758 [details]
contents of my package.* files
Created attachment 103759 [details, diff]
Prevent the TypeError triggered by blockers
This should correct the problem. If the patch is saved as /tmp/blocks.patch, then it can be applied as follows:
cd /usr/lib/portage
patch -p0 < /tmp/blocks.patch
Note that this problem is already fixed in the 2.1.2 branch of portage which is nearing a final release (probably this month).
works like a charm, thanks the patch works fine |