Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159305 - gentoolkit genpkgindex error
Summary: gentoolkit genpkgindex error
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL: http://sources.gentoo.org/viewcvs.py/...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-12-28 12:22 UTC by Mohamed M. Hagag
Modified: 2007-01-08 21: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 Mohamed M. Hagag 2006-12-28 12:22:32 UTC
when i run  Update binary package index /usr/portage/packages/All i get this error:

Traceback (most recent call last):
  File "/usr/lib/gentoolkit/bin/genpkgindex", line 128, in ?
    for x in iuse.split(' '):
AttributeError: 'NoneType' object has no attribute 'split'

i've test gentoolkit-0.2.2 and the 0.2.3-pre2
Comment 1 Mohamed M. Hagag 2006-12-28 12:55:05 UTC
in line 128 , 129 i've did a cast to iuse,use to strings like this:

128	for x in str(iuse).split(' '):
129		for y in str(use).split(' '):

instead of:

128	for x in iuse.split(' '):
129		for y in use.split(' '):

as i think that split function should be done on strings only and python didn't see them as strings.

after i did this the script runs fine but it doesn't generate metadata.idx file as expected :( .
Comment 3 Paul Varner (RETIRED) gentoo-dev 2007-01-08 21:08:15 UTC
This was released in gentoolkit-0.2.3_pre3