catalyst 2.0.12.1
[catalyst.git] / modules / stage3_target.py
1 """
2 stage3 target, builds upon previous stage2/stage3 tarball
3 """
4 # NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
5
6 from catalyst_support import *
7 from generic_stage_target import *
8
9 class stage3_target(generic_stage_target):
10         """
11         Builder class for a stage3 installation tarball build.
12         """
13         def __init__(self,spec,addlargs):
14                 self.required_values=[]
15                 self.valid_values=[]
16                 generic_stage_target.__init__(self,spec,addlargs)
17
18         def set_portage_overlay(self):
19                 generic_stage_target.set_portage_overlay(self)
20                 if self.settings.has_key("portage_overlay"):
21                         print "\nWARNING !!!!!"
22                         print "\tUsing an overlay for earlier stages could cause build issues."
23                         print "\tIf you break it, you buy it. Don't complain to us about it."
24                         print "\tDont say we did not warn you\n"
25
26         def set_cleanables(self):
27                 generic_stage_target.set_cleanables(self)
28
29 def register(foo):
30         foo.update({"stage3":stage3_target})
31         return foo