From 842caf2cb76927ce6b81c4211dc69ba2443e1634 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= <dev@stellardeath.org>
Date: Fri, 28 Jun 2024 12:22:56 +0200
Subject: [PATCH] Remove 'all_possible' argument to mpcdf_setup_subproject(),
 was not used anymore

---
 mpcdf_common.py | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/mpcdf_common.py b/mpcdf_common.py
index 3a1ec5e..63582c4 100644
--- a/mpcdf_common.py
+++ b/mpcdf_common.py
@@ -752,7 +752,7 @@ def sort_repos(root):
 
 
 def mpcdf_setup_subproject(api_url, project, distribution, microarchitecture,
-                           parent=None, dry_run=False, diff=False, remove_old=False, remove_old_matching=None, all_possible=False, only_project=False):
+                           parent=None, dry_run=False, diff=False, remove_old=False, remove_old_matching=None, only_project=False):
     import re
 
     if microarchitecture not in known_microarchs:
@@ -910,18 +910,11 @@ Macros:
     def actual_cuda(c):
         return True
 
-    if all_possible:
-        compilers = list(filter(actual_compiler, get_allowed_attribute_values(api_url, "MPCDF:compiler_modules")))
-        mpis = list(filter(actual_mpi, get_allowed_attribute_values(api_url, "MPCDF:mpi_modules")))
-        cudas = list(filter(actual_cuda, get_allowed_attribute_values(api_url, "MPCDF:cuda_modules")))
-        pgis = get_allowed_attribute_values(api_url, "MPCDF:pgi_modules")
-        openmpi_flavors = get_allowed_attribute_values(api_url, "MPCDF:openmpi_flavors")
-    else:
-        compilers = overloaded_project_attribute(api_url, project, "MPCDF:compiler_modules")
-        mpis = overloaded_project_attribute(api_url, project, "MPCDF:mpi_modules")
-        cudas = overloaded_project_attribute(api_url, project, "MPCDF:cuda_modules")
-        pgis = overloaded_project_attribute(api_url, project, "MPCDF:pgi_modules")
-        openmpi_flavors = overloaded_project_attribute(api_url, project, "MPCDF:openmpi_flavors")
+    compilers = overloaded_project_attribute(api_url, project, "MPCDF:compiler_modules")
+    mpis = overloaded_project_attribute(api_url, project, "MPCDF:mpi_modules")
+    cudas = overloaded_project_attribute(api_url, project, "MPCDF:cuda_modules")
+    pgis = overloaded_project_attribute(api_url, project, "MPCDF:pgi_modules")
+    openmpi_flavors = overloaded_project_attribute(api_url, project, "MPCDF:openmpi_flavors")
 
     if parent:
         repo("System", (("software", distribution),))
-- 
GitLab