From e5e1b0fc2b4411e660039cacb9baf6fc8533b52b Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 10 Jan 2009 21:06:28 -0600 Subject: [PATCH] Move catalyst.support import to top of file --- ChangeLog | 3 +++ catalyst | 12 +++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2128b098..40ea8ca1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 11 Jan 2009; Andrew Gaffney catalyst: + Move catalyst.support import to top of file + 11 Jan 2009; Andrew Gaffney catalyst: Remove check for sys.argv length since we already check for needed arguments later on diff --git a/catalyst b/catalyst index 0b89facc..97d407f0 100755 --- a/catalyst +++ b/catalyst @@ -15,6 +15,7 @@ sys.path.append(__selfpath__ + "/modules") import catalyst.config import catalyst.util import catalyst.target +from catalyst.support import * __maintainer__="Chris Gianelloni " __version__="2.99" @@ -271,10 +272,7 @@ if __name__ == "__main__": 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"): @@ -295,6 +293,7 @@ if __name__ == "__main__": 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 @@ -341,23 +340,22 @@ if __name__ == "__main__": 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" -- 2.26.2