# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.290 2005/07/06 14:10:03 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.291 2005/07/06 18:28:12 rocket Exp $
+
+ 06 Jul 2005; <eje001@gentoo.org> catalyst, modules/catalyst_support.py,
+ modules/generic_stage_target.py:
+ Fix None None bug and exception reporting
06 Jul 2005; Eric Edgar <rocket@gentoo.org> targets/support/create-iso.sh:
Fix iso creation script. Case statement out of place
#!/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.85 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.86 2005/07/06 18:28:12 rocket Exp $
# Maintained in full by:
# Eric Edgar <rocket@gentoo.org>
# Chris Gianelloni <wolf31o2@gentoo.org>
import os,sys,imp,string,getopt
-
+import pdb
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
__version__="2.0.0_pre2"
except CatalystError:
raise CatalystError,"Could not complete build"
+ print
+ print "Catalyst aborting...."
sys.exit(2)
except KeyboardInterrupt:
print "\nCatalyst build aborted due to user interrupt ( Ctrl-C )"
- sys.exit(2)
+ print
+ print "Catalyst aborting...."
except KeyError:
print "\nproblem with command line or spec file ( Key Error )"
+ print
+ print "Catalyst aborting...."
sys.exit(2)
+ except UnboundLocalError:
+ pass
except:
print "Catalyst aborting...."
raise
# Copyright 1999-2005 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.49 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.50 2005/07/06 18:28:13 rocket Exp $
import sys,string,os,types,re,signal,traceback,md5,time
selinux_capable = False
# pids this process knows of.
spawned_pids = []
+try:
+ import urllib
+except SystemExit, e:
+ raise
def cleanup(pids,block_exceptions=True):
"""function to go through and reap the list of pids passed to it"""
class CatalystError(Exception):
def __init__(self, message):
if message:
- print
- print traceback.print_exc(file=sys.stdout)
+ (type,value)=sys.exc_info()[:2]
+ if value!=None:
+ print
+ print traceback.print_exc(file=sys.stdout)
print
print "!!! catalyst: "+message
print
settings[myfile]=os.getcwd()+"/"+settings[myfile]
else:
raise CatalystError, "Cannot locate specified "+myfile+": "+settings[myfile]+" (2nd try)"
-
"""
Spec file format:
# 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.49 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.50 2005/07/06 18:28:13 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
from catalyst_support import *
from generic_target import *
from stat import *
-
+import pdb
class generic_stage_target(generic_target):
def __init__(self,myspec,addlargs):
self.set_iso()
self.set_packages()
-
# this next line checks to make sure that the specified variables exist on disk.
+ #pdb.set_trace()
file_locate(self.settings,["source_path","snapshot_path","distdir"],expand=0)
-
+
# if we are using portage_confdir, check that as well
if self.settings.has_key("portage_confdir"):
file_locate(self.settings,["portage_confdir"],expand=0)
except CatalystError:
self.unbind()
raise
+
touch(self.settings["autoresume_path"]+"unmerge")
def target_setup(self):