Adjusted exit in case of error
This commit is contained in:
parent
48ccbe766b
commit
eb719c0457
|
@ -155,7 +155,7 @@ def installLib(lib,srcDir,workDir,instDir,compCC,compCXX,compFC,buildThreads,ver
|
|||
if (err != 0):
|
||||
print("Error: Download of "+libName+" v."+libVersion+" failed!")
|
||||
print("See "+logfilePath+" for details")
|
||||
exit
|
||||
sys.exit(0)
|
||||
# configure library
|
||||
os.chdir(workDir)
|
||||
if (os.path.exists(workDir+"/"+libName+"-"+libVersion)):
|
||||
|
@ -173,7 +173,7 @@ def installLib(lib,srcDir,workDir,instDir,compCC,compCXX,compFC,buildThreads,ver
|
|||
if (err != 0):
|
||||
print("Error: Configuring of "+libName+" v."+libVersion+" failed!")
|
||||
print("See "+logfilePath+" for details")
|
||||
exit
|
||||
sys.exit(1)
|
||||
|
||||
# build library
|
||||
#buildCommand = lib['build'].replace("$CC",compCC).replace("$CXX",compCXX).replace("$FC",compFC).replace("$INSTALL",instDir).replace("$BUILDTHREADS",buildThreads).split()
|
||||
|
@ -203,7 +203,7 @@ def installLib(lib,srcDir,workDir,instDir,compCC,compCXX,compFC,buildThreads,ver
|
|||
if (err != 0):
|
||||
print("Error: Building "+libName+" v."+libVersion+" failed!")
|
||||
print("See "+logfilePath+" for details")
|
||||
exit
|
||||
sys.exit(1)
|
||||
|
||||
#install library
|
||||
installCommand = lib['install'].replace("$BUILDTHREADS",buildThreads)
|
||||
|
@ -215,7 +215,7 @@ def installLib(lib,srcDir,workDir,instDir,compCC,compCXX,compFC,buildThreads,ver
|
|||
if (err != 0):
|
||||
print("Error: Installing "+libName+" v."+libVersion+" failed!")
|
||||
print("See "+logfilePath+" for details")
|
||||
exit
|
||||
sys.exit(1)
|
||||
print("Library "+libName+" has been installed successfully!\n")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue