Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14269 - emerge --usepkg fails with python trace
Summary: emerge --usepkg fails with python trace
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-20 22:34 UTC by Pat Double
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
package.txt (packages.txt,43.25 KB, text/plain)
2003-01-23 16:23 UTC, Pat Double
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pat Double 2003-01-20 22:34:24 UTC
When I try to update a package I have build a binary tbz2 with using ebuild package I 
get the follow traceback. The command I'm using is "emerge --usepkg -u <package 
name>". This worked before the last time I updated portage. 
 
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 1542, in ? 
    mydepgraph=depgraph(myaction,myopts) 
  File "/usr/bin/emerge", line 420, in __init__ 
    portage.db["/"]["bintree"].populate() 
  File "/usr/lib/python2.2/site-packages/portage.py", line 3349, in populate 
    self.dbapi.cpv_inject(fullpkg) 
  File "/usr/lib/python2.2/site-packages/portage.py", line 2550, in cpv_inject 
    mycp=cpv_getkey(mycpv) 
  File "/usr/lib/python2.2/site-packages/portage.py", line 2122, in cpv_getkey 
    return myslash[0]+"/"+mysplit[0] 
TypeError: unsubscriptable object 
 
I'm using portage 2.0.46-r9. 
 
I can merge packages though with emerge -u or ebuild ... merge
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-01-23 14:44:30 UTC
Still an issue?
Does 'emerge -up world' have the same problem?
If not cna you try doing an 'emerge -ku' on each package listed?

post the following for me:
ls -l /usr/portage/packages/
Comment 2 Pat Double 2003-01-23 16:23:17 UTC
Yes, this is still an issue. 'emerge -up world' works fine as does 'emerge -u world'. I 
tried 'emerge -ku' on some of the packages, such as mplayer and cdrtools, no go. I 
previously build these with 'emerge -u world'. I'm attaching the listing you requested, 
I'm guessing you really wanted /usr/portage/packages/All. If I'm wrong, let me know 
and I'll post /usr/portage/packages. 
Comment 3 Pat Double 2003-01-23 16:23:44 UTC
Created attachment 7591 [details]
package.txt

ls -l /usr/portage/packages/All
Comment 4 Pat Double 2003-02-19 05:55:52 UTC
OK, here's the problem. My oops, although I'm not sure portage should handle this. 
 
I have several copies of the kopete-5.tbz2 in /usr/portage/packages/All. They are 
named with the date, i.e. kopete-5-20030206.tbz2, etc. kopete-5 is a CVS ebuild so I 
like to keep previous builds on hand. After removing these the problem goes away. 
 
I'll leave it up to you to decide whether this is a bug you want to fix, or a user error. 
 
Thanks. 
 
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-02-21 05:39:22 UTC
fixed in cvs for 2.0.47-r3
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-02-22 07:58:15 UTC
out shortly.