Commit 1e89a179 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Fix mpcdf_enable_repositories for home:* projects

parent 7bec0f4e
......@@ -499,10 +499,12 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False, dry_run=
yield pgi
for flag in enable_repos:
if project == "software":
if flag == "system":
if flag == "system":
if project == "software":
for distribution in distributions:
elif project.startswith("home:"):
if flag == "compilers":
......@@ -92,7 +92,7 @@ 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) > 0 or opts.disable) and not opts.dry_run:
if project == "software":
mpcdf_common.sync_projects(api_url, package, verbose=True)
elif (opts.compiler_modules or opts.mpi_modules or opts.cuda_modules):
......@@ -110,7 +110,7 @@ def do_mpcdf_enable_repositories(self, subcmd, opts, *args):
values = mpcdf_common.get_attribute_values(api_url, project, package, attribute_name)
except Exception:
print(description, ",".join(values))
print(description, ",".join(values) if values else "<empty list>")
print("Enabled for:", ",".join(enabled))
print_attr("- Subset of compiler modules set to:", "MPCDF:compiler_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