# 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:
+ Move catalyst.support import to top of file
+
11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
Remove check for sys.argv length since we already check for needed
arguments later on
import catalyst.config
import catalyst.util
import catalyst.target
+from catalyst.support import *
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
__version__="2.99"
usage()
sys.exit(2)
- # import configuration file and import our main module using those settings
parse_config(myconfig)
-
- from catalyst.support import *
# Start checking that digests are valid now that the hash_map was imported from catalyst_support
if conf_values.has_key("digests"):
print
print "Catalyst aborting...."
sys.exit(2)
+
if conf_values.has_key("hash_function"):
if not hash_map.has_key(conf_values["hash_function"]):
print
print
print "Catalyst aborting...."
sys.exit(2)
+
except KeyboardInterrupt:
print "\nCatalyst build aborted due to user interrupt ( Ctrl-C )"
print
print "Catalyst aborting...."
sys.exit(2)
+
except LockInUse:
print "Catalyst aborting...."
sys.exit(2)
+
except:
print "Catalyst aborting...."
raise
sys.exit(2)
- #except CatalystError:
- # print
- # print "Catalyst aborting...."
- # sys.exit(2)
#except KeyError:
# print "\nproblem with command line or spec file ( Key Error )"
# print "Key: "+str(sys.exc_value)+" was not found"