tweaks to error handling in the main catalyst script, and added portage_confdir to...
authorJohn P. Davis <zhen@gentoo.org>
Sun, 2 Jan 2005 04:15:51 +0000 (04:15 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Sun, 2 Jan 2005 04:15:51 +0000 (04:15 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@505 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
catalyst
examples/generic_stage_template.spec
modules/catalyst_support.py

index 5c1ed4fc0139835b947c0cac64a12fedb035ae7b..8e27eb67383dc0e091400451d038a7d955619551 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # ChangeLog for gentoo/src/catalyst 
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.132 2004/12/29 15:51:43 wolf31o2 Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.133 2005/01/02 04:15:51 zhen Exp $
+
+  01 Jan 2005; John Davis <zhen@gentoo.org> catalyst,
+  examples/generic_stage_template.spec, modules/catalyst_support.py:
+  tweaking error handling in the main catalyst script
+  updated the example to include a blurb about portage_confdir
 
   29 Dec 2004; Chris Gianelloni <wolf31o2@gentoo.org>
   livecd/runscript-support/livecdfs-update.sh:
index 7f117aec7da247e4cfda2d380d500339eaab4636..4e33e50700d76d2cd626a466f80a3d9bf4cdc8e1 100755 (executable)
--- a/catalyst
+++ b/catalyst
@@ -1,7 +1,7 @@
 #!/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.55 2004/12/17 21:18:06 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.56 2005/01/02 04:15:51 zhen Exp $
 
 # Maintained in full by John Davis <zhen@gentoo.org>
 
@@ -286,6 +286,7 @@ if __name__ == "__main__":
        # everything is setup, so the build is a go
        try:
                build_target(addlargs, targetmap)
-       except:
-               print "!!! catalyst: could not complete build"
+       
+       except CatalystError:
+               raise CatalystError,"Could not complete build"
                sys.exit(2)
index fd70f02765be98f6fd4802175d5c07e44cf79ec8..3889d1704e61df51f265442c4841f6f8582f97c8 100644 (file)
@@ -40,3 +40,12 @@ snapshot:
 # example:
 # default/stage3-x86-2004.1
 source_subpath:
+
+# hosts used as distcc slaves (distcc required in options (catalyst.conf)
+# example:
+# distcc_hosts: 127.0.0.1 192.168.0.1
+
+# optional directory containing portage configuration files
+# example:
+# portage_confdir: /etc/portage
+# portage_confdir:
index 669bc8da479fc3cb71683b9dabc869426d29632a..a5ca529c8c9d38c40ab89533cebb76bc7bb44c70 100644 (file)
@@ -1,6 +1,6 @@
 # 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.33 2004/12/18 04:47:14 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.34 2005/01/02 04:15:51 zhen Exp $
 
 import sys,string,os,types,re,traceback
 
@@ -45,6 +45,7 @@ class CatalystError(Exception):
                        print traceback.print_exc(file=sys.stdout)
                        print
                        print "!!! catalyst: "+message
+                       print
                        
 def die(msg=None):
        warn(msg)