pass
assert(_status==0)
- # Update git config
- for key, val in submodules.items():
- if val != "":
- local_command = "git config "
- local_command += "-f .gitmodules "
- local_command += "submodule.%s.url %s" % (key, val)
- p=subprocess.Popen(local_command,cwd=dirGitLoc,shell=True)
- p.communicate()
-
else:
- # Update git config
- for key, val in submodules.items():
- if val != "":
- local_command = "git config "
- local_command += "-f .gitmodules "
- local_command += "submodule.%s.url %s" % (key, val)
- p=subprocess.Popen(local_command,cwd=dirGitLoc,shell=True)
- p.communicate()
-
# Fetch
print("Fetching %s..."%dirGitLoc)
assert(os.path.exists(os.path.join(dirGitLoc,".git")))
if p_err: msg += p_err
raise Exception(msg)
+ # Update git config
+ for key, val in submodules.items():
+ if val != "":
+ local_command = "git config "
+ local_command += "-f .gitmodules "
+ local_command += "submodule.%s.url %s" % (key, val)
+ p=subprocess.Popen(local_command,cwd=dirGitLoc,shell=True)
+ p.communicate()
+
# Init and Update submodules
if dirGitLoc in ["ParaView", "prerequisites-salome.paraview"]:
p=subprocess.Popen(["git","submodule","update","--init","--recursive"],cwd=dirGitLoc)