From: John P. Davis Date: Tue, 11 May 2004 20:05:20 +0000 (+0000) Subject: fix for error handling of a non-found spec file X-Git-Tag: CATALYST_2_0_6_916~1006 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6f9c30861c8d154f88d90271084b00618a94100;p=catalyst.git fix for error handling of a non-found spec file git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@367 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/catalyst b/catalyst index 2e6a5d28..b649575a 100755 --- a/catalyst +++ b/catalyst @@ -1,7 +1,7 @@ #!/usr/bin/python # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.33 2004/04/26 15:18:54 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.34 2004/05/11 20:05:20 zhen Exp $ import os,sys,imp,string @@ -89,7 +89,7 @@ if sys.argv[1] in ["-f", "--file" ]: try: addlargs=read_spec(sys.argv[2]) except: - raise CatalystError,"Unable to read spec file: "+sys.argv[2] + sys.exit(1) unparsedargs=sys.argv[3:] else: addlargs={}