diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-11-22 10:47:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 10:47:09 +0100 |
commit | 0024e5cc9b5fe2f803d314e80ed14ade22d3bb55 (patch) | |
tree | a8deb401b264228c41a3e817384058ba112ed087 /var | |
parent | cda9d6d98133e6a2eae89d91b0cabce1ce36d48a (diff) | |
download | spack-0024e5cc9b5fe2f803d314e80ed14ade22d3bb55.tar.gz spack-0024e5cc9b5fe2f803d314e80ed14ade22d3bb55.tar.bz2 spack-0024e5cc9b5fe2f803d314e80ed14ade22d3bb55.tar.xz spack-0024e5cc9b5fe2f803d314e80ed14ade22d3bb55.zip |
Make _enable_or_disable(...) return an empty array for conditional variants whose condition is not met (#27504)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/autotools-conditional-variants-test/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/autotools-conditional-variants-test/package.py b/var/spack/repos/builtin.mock/packages/autotools-conditional-variants-test/package.py new file mode 100644 index 0000000000..7a0174fd21 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/autotools-conditional-variants-test/package.py @@ -0,0 +1,11 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class AutotoolsConditionalVariantsTest(AutotoolsPackage): + homepage = "https://www.example.com" + has_code = False + version('1.0') + variant('example', default=True, description='nope', when='@2.0:') |