When calling sys.exit() inside die(), don't make the value negative since
authorzmedico <zmedico@gentoo.org>
Sun, 14 Dec 2008 04:08:42 +0000 (04:08 -0000)
committerzmedico <zmedico@gentoo.org>
Sun, 14 Dec 2008 04:08:42 +0000 (04:08 -0000)
it seems to be unintended (callers all pass in positive values). Thanks
to DJ Anderson for reporting.

svn path=/; revision=529

trunk/src/gentoolkit/pprinter.py

index 39665f8abb1b272313d48d0d8b49987169e50b33..ff92a26247974a3e88ef1533d482bd1017565c0b 100644 (file)
@@ -33,7 +33,7 @@ def print_warn(s):
 def die(err, s):
        """Print an error string and die with an error code."""
        print_error(s)
-       sys.exit(-err)
+       sys.exit(err)
 
 # Colour settings