[gentoo-user] either emerge or portage is completely broken

2005-12-29 Thread Robert Persson
I ran emerge sync earlier this evening and I got the following at the end of 
the output:

Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
.Traceback (most recent call last):
  File /usr/bin/emerge, line 10, in ?
import portage
  File /usr/lib/portage/pym/portage.py, line 7480, in ?
do_upgrade(mykey)
  File /usr/lib/portage/pym/portage.py, line 7385, in do_upgrade
key=dep_getkey(line.split()[0])
  File /usr/lib/portage/pym/portage.py, line 3609, in dep_getkey
if mydep[-1]==*:
IndexError: string index out of range

I now get the same error messages when I try to emerge anything, including 
portage. In other words portage is completely broken.

What should I do?

Many thanks
Robert
-- 
Robert Persson
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] either emerge or portage is completely broken

2005-12-29 Thread Jason Stubbs
On Friday 30 December 2005 14:27, Robert Persson wrote:
 I ran emerge sync earlier this evening and I got the following at the end
 of the output:

 Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
 (Could take a couple of minutes if you have a lot of binary packages.)
   .='update pass'  *='binary update'  @='/var/db move'
   s='/var/db SLOT move' S='binary SLOT move' p='update
 /etc/portage/package.*' .Traceback (most recent call last):
   File /usr/bin/emerge, line 10, in ?
 import portage
   File /usr/lib/portage/pym/portage.py, line 7480, in ?
 do_upgrade(mykey)
   File /usr/lib/portage/pym/portage.py, line 7385, in do_upgrade
 key=dep_getkey(line.split()[0])
   File /usr/lib/portage/pym/portage.py, line 3609, in dep_getkey
 if mydep[-1]==*:
 IndexError: string index out of range

 I now get the same error messages when I try to emerge anything, including
 portage. In other words portage is completely broken.

 What should I do?

One of your /etc/portage/package.* files contains an invalid atom. By the look 
of the traceback, you have a line with just a * perhaps?

--
Jason Stubbs
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] either emerge or portage is completely broken

2005-12-29 Thread Robert Persson
On December 29, 2005 10:31 pm Jason Stubbs was like:

 One of your /etc/portage/package.* files contains an invalid atom. By the
 look of the traceback, you have a line with just a * perhaps?

 Jason Stubbs

That was it! Thanks!

I had a line reading * media-video/mpeg4ip in /etc/portage/package.mask

Robert
-- 
Robert Persson

Don't use nuclear weapons to troubleshoot faults.
(US Air Force Instruction 91-111, 1 Oct 1997)

-- 
gentoo-user@gentoo.org mailing list