# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.337 2005/10/06 15:21:30 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.338 2005/10/06 15:45:28 rocket Exp $
+
+ 06 Oct 2005; Eric Edgar <rocket@gentoo.org> catalyst,
+ modules/catalyst_support.py:
+ allow file_check to proceed if key is not in use
06 Oct 2005; Eric Edgar <rocket@gentoo.org> modules/catalyst_lock.py:
Recursively make the missing directories
#!/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.90 2005/09/30 20:16:50 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.91 2005/10/06 15:45:28 rocket Exp $
# Maintained in full by:
# Eric Edgar <rocket@gentoo.org>
mytarget.run()
except CatalystError:
- mytarget.mount_safety_check()
+ try:
+ mytarget.mount_safety_check()
+ except:
+ pass
sys.exit(1)
if __name__ == "__main__":
build_target(addlargs, targetmap)
except CatalystError:
- raise CatalystError,"Could not complete build"
print
print "Catalyst aborting...."
sys.exit(2)
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 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/catalyst_support.py,v 1.56 2005/08/29 19:38:48 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.57 2005/10/06 15:45:28 rocket Exp $
import sys,string,os,types,re,signal,traceback,md5,time
selinux_capable = False
if not settings.has_key(myfile):
#filenames such as cdtar are optional, so we don't assume the variable is defined.
pass
- if len(settings[myfile])==0:
- raise CatalystError, "File variable \""+myfile+"\" has a length of zero (not specified.)"
- if settings[myfile][0]=="/":
- if not os.path.exists(settings[myfile]):
- raise CatalystError, "Cannot locate specified "+myfile+": "+settings[myfile]
- elif expand and os.path.exists(os.getcwd()+"/"+settings[myfile]):
- settings[myfile]=os.getcwd()+"/"+settings[myfile]
else:
- raise CatalystError, "Cannot locate specified "+myfile+": "+settings[myfile]+" (2nd try)"
+ if len(settings[myfile])==0:
+ raise CatalystError, "File variable \""+myfile+"\" has a length of zero (not specified.)"
+ if settings[myfile][0]=="/":
+ if not os.path.exists(settings[myfile]):
+ raise CatalystError, "Cannot locate specified "+myfile+": "+settings[myfile]
+ elif expand and os.path.exists(os.getcwd()+"/"+settings[myfile]):
+ settings[myfile]=os.getcwd()+"/"+settings[myfile]
+ else:
+ raise CatalystError, "Cannot locate specified "+myfile+": "+settings[myfile]+" (2nd try)"
"""
Spec file format: