summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-03-18 12:53:53 +0100
committerGitHub <noreply@github.com>2024-03-18 12:53:53 +0100
commit9662d181a01785afecd2725dfe71dde2630b86da (patch)
treedac4b7fbe7a03ff10feb14f85b731c859b6e3d9b /lib
parent282df7aecca06ad729f1ac34f8e37d30279eae6f (diff)
downloadspack-9662d181a01785afecd2725dfe71dde2630b86da.tar.gz
spack-9662d181a01785afecd2725dfe71dde2630b86da.tar.bz2
spack-9662d181a01785afecd2725dfe71dde2630b86da.tar.xz
spack-9662d181a01785afecd2725dfe71dde2630b86da.zip
use directives in some packages (#43238)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/directives.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py
index 207624965d..0d4834ed13 100644
--- a/lib/spack/spack/directives.py
+++ b/lib/spack/spack/directives.py
@@ -921,9 +921,9 @@ def maintainers(*names: str):
"""
def _execute_maintainer(pkg):
- maintainers_from_base = getattr(pkg, "maintainers", [])
- # Here it is essential to copy, otherwise we might add to an empty list in the parent
- pkg.maintainers = list(sorted(set(maintainers_from_base + list(names))))
+ maintainers = set(getattr(pkg, "maintainers", []))
+ maintainers.update(names)
+ pkg.maintainers = sorted(maintainers)
return _execute_maintainer