projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
219db00
)
When calling sys.exit() inside die(), don't make the value negative since
author
zmedico
<zmedico@gentoo.org>
Sun, 14 Dec 2008 04:08:42 +0000
(
04:08
-0000)
committer
zmedico
<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
patch
|
blob
|
history
diff --git
a/trunk/src/gentoolkit/pprinter.py
b/trunk/src/gentoolkit/pprinter.py
index 39665f8abb1b272313d48d0d8b49987169e50b33..ff92a26247974a3e88ef1533d482bd1017565c0b 100644
(file)
--- 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