projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ff9ff4
)
Use subprocess.call for Python 2.4 compatibility
author
Elliott Hird
<penguinofthegods@gmail.com>
Wed, 23 May 2012 13:58:49 +0000
(14:58 +0100)
committer
Elliott Hird
<penguinofthegods@gmail.com>
Wed, 23 May 2012 13:58:49 +0000
(14:58 +0100)
bootstrap.py
patch
|
blob
|
history
diff --git
a/bootstrap.py
b/bootstrap.py
index
1df423d
..
ad6f1eb
100755
(executable)
--- a/
bootstrap.py
+++ b/
bootstrap.py
@@
-27,10
+27,9
@@
parser.add_option('--verbose', action='store_true',
(options, conf_args) = parser.parse_args()
def run(*args, **kwargs):
- try:
- subprocess.check_call(*args, **kwargs)
- except subprocess.CalledProcessError, e:
- sys.exit(e.returncode)
+ returncode = subprocess.call(*args, **kwargs)
+ if returncode != 0:
+ sys.exit(returncode)
# Compute system-specific CFLAGS/LDFLAGS as used in both in the below
# g++ call as well as in the later configure.py.