From 4ca5589c76e4d86e8f9fdbd88836d3fe9274bb69 Mon Sep 17 00:00:00 2001 From: zmedico Date: Sun, 14 Dec 2008 04:08:42 +0000 Subject: [PATCH] When calling sys.exit() inside die(), don't make the value negative since 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/gentoolkit/pprinter.py b/trunk/src/gentoolkit/pprinter.py index 39665f8..ff92a26 100644 --- a/trunk/src/gentoolkit/pprinter.py +++ b/trunk/src/gentoolkit/pprinter.py @@ -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 -- 2.26.2