Commit 6fdd0e9b authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Sync after mpcdf_enable_repositories and mpcdf_push

parent 3656e9af
Pipeline #67041 passed with stage
in 14 seconds
......@@ -86,8 +86,12 @@ def do_mpcdf_enable_repositories(self, subcmd, opts, *args):
if opts.recreate or opts.set or opts.disable:
mpcdf_common.mpcdf_enable_repositories(api_url, project, package, verbose=True)
if project == "software":
mpcdf_common.sync_projects(api_url, package)
elif (opts.compiler_modules or opts.mpi_modules or opts.cuda_modules):
print("ERROR: Invalid arguments, try --help")
else:
try:
repos = mpcdf_common.get_attribute_values(api_url, project, package, "MPCDF:enable_repositories")
......
......@@ -129,3 +129,5 @@ def do_mpcdf_push(self, subcmd, opts, *args):
if "_link" not in filelist:
print("Setting branch relationship")
mpcdf_common.set_as_branch(api_url, from_project, package, to_project, package)
mpcdf_common.sync_projects(api_url, package)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment