From 35fde27358e8b881cc5946bb65af89ad992db54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= <lorenz.huedepohl@rzg.mpg.de> Date: Tue, 17 Jul 2018 16:43:52 +0200 Subject: [PATCH] Fix mpcdf_setup_repositories with --parent=... option --- mpcdf_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mpcdf_common.py b/mpcdf_common.py index 3f1ccf1..06b265b 100644 --- a/mpcdf_common.py +++ b/mpcdf_common.py @@ -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")) -- GitLab