Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129193 - Invalid package.keywords entry causes portage traceback
Summary: Invalid package.keywords entry causes portage traceback
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-04-07 19:01 UTC by Alan Briolat
Modified: 2006-04-09 00:08 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 Alan Briolat 2006-04-07 19:01:37 UTC
My package.keywords after an error while running a script i wrote:

----------
net-irc/supybot
net-mail/vqadmin
net-mail/qmail-lint
dev-util/subversion
 * Error: Could not find esearch-index. Please run eupdatedb as root first
----------

Instead of a legible error message, problems like this in package.keywords cause the following traceback, which makes it hard to figure out where the real problem lies:

----------
Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6628, in ?
    settings=config(config_profile_path=PROFILE_PATH,config_incrementals=portage_const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage.py", line 1130, in __init__
    pkgdict=grabdict_package(USER_CONFIG_PATH+"/package.keywords", recursive=1)
  File "/usr/lib/portage/pym/portage.py", line 792, in grabdict_package
    if not isvalidatom(x):
  File "/usr/lib/portage/pym/portage.py", line 3123, in isvalidatom
    mycpv_cps = catpkgsplit(dep_getcpv(atom))
  File "/usr/lib/portage/pym/portage.py", line 3325, in dep_getcpv
    if mydep[-1]=="*":
IndexError: string index out of range
----------

Of course i should be more careful with my scripting, but it would be good if errors like this resulted in a sensible error like the "Invalid package atom" for package.mask/unmask entries.
Comment 1 Zac Medico gentoo-dev 2006-04-09 00:08:09 UTC
This is in svn r3094 and released in 2.1_pre7-r5.