fix for error handling of a non-found spec file
authorJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:05:20 +0000 (20:05 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:05:20 +0000 (20:05 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@367 d1e1f19c-881f-0410-ab34-b69fee027534

catalyst

index 2e6a5d28b73466c43ea797e2949afbec31e9e181..b649575a839158fc5d2a47f163f3ca56a40a381c 100755 (executable)
--- 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={}