# Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
+ 11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
+ Remove import_modules()
+
11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst,
modules/catalyst/target/embedded.py,
modules/catalyst/target/generic_stage.py, modules/catalyst/target/grp.py,
import catalyst.config
import catalyst.util
+import catalyst.target
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
__version__="2.99"
print "Envscript support enabled."
conf_values["ENVSCRIPT"]=myconf["envscript"]
-def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
- import catalyst.target
-
- targetmap = catalyst.target.build_target_map()
- return targetmap
-
def build_target(addlargs, targetmap):
try:
if not targetmap.has_key(addlargs["target"]):
print "Catalyst aborting...."
sys.exit(2)
- # import the rest of the catalyst modules
- targetmap=import_modules()
+ targetmap = catalyst.target.build_target_map()
addlargs={}