projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
901e56a
)
Fix exitcode handling of os.system()
author
genone
<genone@gentoo.org>
Wed, 30 May 2007 18:03:44 +0000
(18:03 -0000)
committer
genone
<genone@gentoo.org>
Wed, 30 May 2007 18:03:44 +0000
(18:03 -0000)
svn path=/; revision=405
trunk/src/glsa-check/glsa-check
patch
|
blob
|
history
diff --git
a/trunk/src/glsa-check/glsa-check
b/trunk/src/glsa-check/glsa-check
index 5789547693d853e0009a2db7030a635657d5ea5b..c7aec45c689661aaaa85e0452f1d9237d100e22c 100644
(file)
--- a/
trunk/src/glsa-check/glsa-check
+++ b/
trunk/src/glsa-check/glsa-check
@@
-250,6
+250,9
@@
if mode in ["dump", "fix", "inject", "pretend"]:
if verbose:
sys.stderr.write(emergecmd+"\n")
exitcode = os.system(emergecmd)
+ # system() returns the exitcode in the high byte of a 16bit integer
+ if exitcode >= 1<<8:
+ exitcode >>= 8
if exitcode:
sys.exit(exitcode)
myglsa.inject()