From f1f80640fbd9438da3aeaa74ef1b1c557f637273 Mon Sep 17 00:00:00 2001 From: Timothee TTimo Besset Date: Sun, 4 Dec 2011 11:53:02 -0600 Subject: [PATCH] Linux/scons: throw exception when curl configure or make fails --- neo/sys/scons/SConscript.curl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neo/sys/scons/SConscript.curl b/neo/sys/scons/SConscript.curl index abaa401..a57dc8f 100644 --- a/neo/sys/scons/SConscript.curl +++ b/neo/sys/scons/SConscript.curl @@ -3,7 +3,7 @@ # TTimo # http://scons.sourceforge.net -import os +import subprocess import scons_utils @@ -19,12 +19,12 @@ class idBuildCurl( scons_utils.idSetupBase ): cmd += '--enable-debug' else: cmd += '--disable-debug' - os.system( cmd ) - os.system( 'cd curl ; make' ) + subprocess.check_call( cmd, shell = True ) + subprocess.check_call( 'cd curl ; make', shell = True ) if ( self.debug ): - os.system( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-debug.a' ) + subprocess.check_call( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-debug.a', shell = True ) else: - os.system( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-release.a' ) + subprocess.check_call( 'cd curl ; mv ./lib/.libs/libcurl.a ./lib/.libs/libcurl-release.a', shell = True ) return 0 build = idBuildCurl()