Commit a1962aaf authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl

Nasty bug in mpcdf_enable_repositories

parent 5a5fc9a7
Pipeline #71969 passed with stage
in 16 seconds
......@@ -92,7 +92,8 @@ 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, dry_run=opts.dry_run)
enabled = mpcdf_common.get_attribute_values(api_url, project, package, "MPCDF:enable_repositories")
if project == "software" and enabled != ["system"] and len(enabled) > 1 and not opts.dry_run:
raise 1
if project == "software" and enabled != ["system"] and len(enabled) > 0 and not opts.dry_run:
mpcdf_common.sync_projects(api_url, package, verbose=True)
elif (opts.compiler_modules or opts.mpi_modules or opts.cuda_modules):
......
Markdown is supported
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