From 0024e5cc9b5fe2f803d314e80ed14ade22d3bb55 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 22 Nov 2021 10:47:09 +0100 Subject: Make _enable_or_disable(...) return an empty array for conditional variants whose condition is not met (#27504) --- .../packages/autotools-conditional-variants-test/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 var/spack/repos/builtin.mock/packages/autotools-conditional-variants-test/package.py (limited to 'var') 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:') -- cgit v1.2.3-70-g09d2