# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.379 2005/11/15 22:20:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.380 2005/11/17 20:27:57 rocket Exp $
+
+ 17 Nov 2005; Eric Edgar <rocket@gentoo.org> catalyst,
+ modules/generic_stage_target.py:
+ Turn on more tracebacks at this point to better debug .. will need to turn
+ them down as we find errors and build appropriate error handlers
15 Nov 2005; Chris Gianelloni <wolf31o2@gentoo.org> catalyst:
Changed version marker to 2.0_pre20051115 for new ebuild.
#!/usr/bin/python
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.96 2005/11/15 22:20:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.97 2005/11/17 20:27:57 rocket Exp $
# Maintained in full by:
# Eric Edgar <rocket@gentoo.org>
# everything is setup, so the build is a go
try:
build_target(addlargs, targetmap)
-
+
except CatalystError:
print
print "Catalyst aborting...."
print "\nCatalyst build aborted due to user interrupt ( Ctrl-C )"
print
print "Catalyst aborting...."
- except KeyError:
- print "\nproblem with command line or spec file ( Key Error )"
- print "Key: "+str(sys.exc_value)+" was not found"
- print "Catalyst aborting...."
- sys.exit(2)
- except UnboundLocalError:
- print
- print "UnboundLocalError: "+str(sys.exc_value)+" was not found"
- raise
- print
- print "Catalyst aborting...."
- sys.exit(2)
except LockInUse:
print "Catalyst aborting...."
sys.exit(2)
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"
+ # print "Catalyst aborting...."
+ # sys.exit(2)
+ #except UnboundLocalError:
+ # print
+ # print "UnboundLocalError: "+str(sys.exc_value)+" was not found"
+ # raise
+ # print
+ # print "Catalyst aborting...."
+ # sys.exit(2)
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.74 2005/11/07 20:26:37 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.75 2005/11/17 20:27:57 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
msg("Can't find "+x+".py plugin in "+self.settings["sharedir"]+"/arch/")
# call arch constructor, pass our settings
- self.arch=self.subarchmap[self.settings["subarch"]](self.settings)
-
+ try:
+ self.arch=self.subarchmap[self.settings["subarch"]](self.settings)
+ except:
+ print "Invalid subarch: "+self.settings["subarch"]
+ print "Choose one of the following:",
+ for x in self.subarchmap:
+ print x,
+ print
+ print
+ print "Catalyst aborting...."
+ sys.exit(2)
+
print "Using target:",self.settings["target"]
# self.settings["mainarch"] should now be set by our arch constructor, so we print
# a nice informational message: