comparison tools/pkg-install.py @ 4238:bdcbb82d57e2

pkg-install.py: fail pkg build if configure fails (Bug #49503) * tools/pkg-install.py: check status of configure call and raise exeption on error
author John D
date Thu, 03 Nov 2016 03:48:05 -0400
parents d53c492ab48d
children 223b967a2d40
comparison
equal deleted inserted replaced
4237:1cb1ce8f351c 4238:bdcbb82d57e2
223 223
224 if os.path.isfile(src + "/configure") == True: 224 if os.path.isfile(src + "/configure") == True:
225 if env.verbose: 225 if env.verbose:
226 print "running ./configure " + env.config_opts 226 print "running ./configure " + env.config_opts
227 227
228 os.system("./configure " + env.config_opts + "") 228 if os.system("./configure " + env.config_opts + "") != 0:
229 raise Exception, "configure failed - stopping install"
229 230
230 if os.path.isfile(src + "/Makefile") == True: 231 if os.path.isfile(src + "/Makefile") == True:
231 if env.verbose: 232 if env.verbose:
232 print "running make ..." 233 print "running make ..."
233 if os.system(env.make + " --directory '" + src + "'" ) != 0: 234 if os.system(env.make + " --directory '" + src + "'" ) != 0: