# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.242 2005/04/27 17:59:35 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.243 2005/04/27 21:04:01 rocket Exp $
+
+ 27 Apr 2005; Eric Edgar <rocket@gentoo.org> catalyst,
+ modules/catalyst_support.py:
+ Fix exception handling to remove extraneous prints of None
27 Apr 2005; Eric Edgar <rocket@gentoo.org> modules/stage4_target.py:
Remove iso creation code from stage4
#!/usr/bin/python
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.76 2005/04/26 18:30:50 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.77 2005/04/27 21:04:02 rocket Exp $
# Maintained in full by:
# Eric Edgar <rocket@gentoo.org>
mytarget.run()
except CatalystError:
+ mytarget.mount_safety_check()
sys.exit(1)
if __name__ == "__main__":
raise CatalystError,"Could not complete build"
sys.exit(2)
except KeyboardInterrupt:
- print "\nCatalyst build aborted due to user interrupt"
+ print "\nCatalyst build aborted due to user interrupt ( Ctrl-C )"
+ sys.exit(2)
+ except:
+ print "Catalyst aborting ...."
sys.exit(2)
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.44 2005/04/27 17:44:58 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.45 2005/04/27 21:04:02 rocket Exp $
import sys,string,os,types,re,signal,traceback,md5,time
# a function to turn a string of non-printable characters into a string of
else:
return ((retval & 0xff) << 8) # interrupted by signal
- except:
+ except:
os.kill(mypid,signal.SIGTERM)
if os.waitpid(mypid,os.WNOHANG)[1] == 0:
# feisty bugger, still alive.
os.kill(mypid,signal.SIGKILL)
+ raise
def cmd(mycmd,myexc=""):
retval=spawn(mycmd)
if retval != 0:
raise CatalystError,myexc
- except KeyboardInterrupt:
- raise CatalystError,"Caught SIGINT, aborting."
+ except:
+ raise
def file_locate(settings,filelist,expand=1):