diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-03-18 12:53:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 12:53:53 +0100 |
commit | 9662d181a01785afecd2725dfe71dde2630b86da (patch) | |
tree | dac4b7fbe7a03ff10feb14f85b731c859b6e3d9b /lib | |
parent | 282df7aecca06ad729f1ac34f8e37d30279eae6f (diff) | |
download | spack-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.py | 6 |
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 |