Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56018 - portage-2.0.51_pre12 - unsubscriptable object after CTRL+C in merging process
Summary: portage-2.0.51_pre12 - unsubscriptable object after CTRL+C in merging process
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 00:03 UTC by Torsten Veller (RETIRED)
Modified: 2004-07-04 01:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Veller (RETIRED) gentoo-dev 2004-07-04 00:03:39 UTC
# emerge PEAR-DB
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/PEAR-DB-1.5.0_rc2 to /
>>> md5 src_uri ;-) DB-1.5.0RC2.tgz
>>> Unpacking source...
>>> Unpacking DB-1.5.0RC2.tgz to /var/tmp/portage/PEAR-DB-1.5.0_rc2/work
tar: A lone zero block at 768
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-DB-1.5.0_rc2

>>> Install PEAR-DB-1.5.0_rc2 into /var/tmp/portage/PEAR-DB-1.5.0_rc2/image/ category dev-php
install ok: DB 1.5.0RC2
man:
prepallstrip:
strip: 
>>> Completed installing into /var/tmp/portage/PEAR-DB-1.5.0_rc2/image/

>>> Merging dev-php/PEAR-DB-1.5.0_rc2 to /
(CTRL+C)

# akmrg portage
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2645, in ?
    mydepgraph=depgraph(myaction,myopts)
  File "/usr/bin/emerge", line 752, in __init__
    self.mydbapi["/"].cpv_inject(pkg)
  File "/usr/lib/portage/pym/portage.py", line 4376, in cpv_inject
    mycp=cpv_getkey(mycpv)
  File "/usr/lib/portage/pym/portage.py", line 3530, in cpv_getkey
    return myslash[0]+"/"+mysplit[0]
TypeError: unsubscriptable object



Reproducible: Always
Steps to Reproduce:
arkane root # touch /var/db/pkg/dev-php/-MERGING-PEAR-DB-1.5.0_rc2 
arkane root # emerge portage -p

These are the packages that I would merge, in order:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2645, in ?
    mydepgraph=depgraph(myaction,myopts)
  File "/usr/bin/emerge", line 752, in __init__
    self.mydbapi["/"].cpv_inject(pkg)
  File "/usr/lib/portage/pym/portage.py", line 4376, in cpv_inject
    mycp=cpv_getkey(mycpv)
  File "/usr/lib/portage/pym/portage.py", line 3530, in cpv_getkey
    return myslash[0]+"/"+mysplit[0]
TypeError: unsubscriptable object
arkane root # rm /var/db/pkg/dev-php/-MERGING-PEAR-DB-1.5.0_rc2
arkane root # emerge portage -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/portage-2.0.51_pre12 

Total size of downloads: 0 kB
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-07-04 00:09:23 UTC
Run find /var/db/pkg -name '-MERGING-*' -exec rm -v {} \;
It's been taken care of in cvs from what I've been told; meanwhile, ctrl+c during the merge is something of a bad idea...
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-07-04 01:06:05 UTC
Yep. Fixed in CVS and confirmed.