Commit 35fde273 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Fix mpcdf_setup_repositories with --parent=... option

parent ea1ada16
Pipeline #67053 failed with stage
in 8 seconds
......@@ -239,9 +239,9 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False):
def mpcdf_setup_repositories(api_url, project, distribution=None, parent=None, packages=None, dry_run=False):
if parent:
for attribute in ["MPCDF:compiler_modules", "MPCDF:mpi_modules", "MPCDF:cuda_modules"]:
print("Copying attribute '{0}' from parent project".format(attribute))
set_attribute(api_url, project, None, get_attribute(api_url, parent, None, attribute))
for attribute in ["compiler_modules", "default_compiler", "mpi_modules", "default_mpi", "cuda_modules", "default_cuda"]:
print("Copying attribute 'MPCDF:{0}' from parent project".format(attribute))
set_attribute(api_url, project, None, get_attribute(api_url, parent, None, "MPCDF:" + attribute))
compilers = list(get_attribute_values(api_url, project, None, "MPCDF:compiler_modules"))
mpis = list(get_attribute_values(api_url, project, None, "MPCDF:mpi_modules"))
......
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