Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 136351

Summary: possible problem with boot/kernel/foo/packages processing
Product: Gentoo Hosted Projects Reporter: Andrew Gaffney (RETIRED) <agaffney>
Component: CatalystAssignee: Gentoo Catalyst Developers <catalyst>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Gaffney (RETIRED) gentoo-dev 2006-06-10 19:04:44 UTC
Starting at line 511 in modules/generic_stage_target.py, there's the following code:

  for y in loop2:
    if not addlargs.has_key("boot/kernel/"+x+"/packages"):
      addlargs["boot/kernel/"+x+"/packages"]=[[y]]
    else:
      addlargs["boot/kernel/"+x+"/packages"].append(y)

The first part of the 'if' block appears to do something undesired. It creates the initial list and then sticks the first package inside another list. Subsequent packages are added to the main list. This would result in something like:

  [ [ "pkg1" ], "pkg2", "pkg3", "pkg4", "pkg5" ]

Somehow, this just doesn't seem right.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-22 07:19:52 UTC
What would you recommend as a fix?
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-22 07:24:54 UTC
Get rid of one of the sets of brackets in the first part of the 'if':

addlargs["boot/kernel/"+x+"/packages"]=[y]
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-22 07:54:53 UTC
Heh... why didn't you just say that?  :P
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-22 08:19:15 UTC
Because that would have just made sense?
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-28 06:00:14 UTC
Fixed in 2.0_rc49