Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211410 - catalyst always runs stage4/empty
Summary: catalyst always runs stage4/empty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 17:09 UTC by Justin Bronder (RETIRED)
Modified: 2008-06-19 16:05 UTC (History)
0 users

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


Attachments
catalyst-svn-check-empty-key.patch (catalyst-svn-check-empty-key.patch,1.53 KB, patch)
2008-02-25 17:10 UTC, Justin Bronder (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Bronder (RETIRED) gentoo-dev 2008-02-25 17:09:22 UTC
Using the stage4 target with catalyst-2.0.6_pre6 always runs the empty function, even if that key wasn't defined.  Looks like this was introduced to the svn trunk in r1299.  I'll attach a patch that just pushes in the extra tabs required.

Reproducible: Always

Steps to Reproduce:
1.  Create stage4 spec file without stage4/empty
2.  Run catalyst.
3.

Actual Results:  
--- Running action sequence: empty
!!! catalyst: Error encountered during run of target stage4
Catalyst aborting....
Traceback (most recent call last):
  File "/usr/lib64/catalyst/catalyst", line 396, in ?
    build_target(addlargs, targetmap)
  File "/usr/lib64/catalyst/catalyst", line 212, in build_target
    mytarget.run()
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 1293, in run
    apply(getattr(self,x))
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 1155, in empty
    for x in self.settings[self.settings["spec_prefix"]+"/empty"]:
KeyError: 'stage4/empty'

Expected Results:  
empty should not be called.
Comment 1 Justin Bronder (RETIRED) gentoo-dev 2008-02-25 17:10:51 UTC
Created attachment 144598 [details, diff]
catalyst-svn-check-empty-key.patch
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-26 03:12:09 UTC
This is fixed in SVN. Also, this bug also affected livecd/empty, but it's a lot less likely to see a livecd-stage2 spec without a livecd/empty line.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-19 16:05:36 UTC
This is in catalyst 2.0.6, which is in the tree and stable.  If there's still a problem with this, please REOPEN this bug.

Thanks!