From d9b93bf7f25cd44c25c92b58db3e322a82fcaaa0 Mon Sep 17 00:00:00 2001 From: Jiakun Yan Date: Thu, 25 Apr 2024 11:45:17 -0500 Subject: [PATCH] improve spack package.py: use spec.satisfies instead of spec.value --- contrib/spack/packages/lci/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/spack/packages/lci/package.py b/contrib/spack/packages/lci/package.py index 4a1ab6d9..b4a64f7b 100644 --- a/contrib/spack/packages/lci/package.py +++ b/contrib/spack/packages/lci/package.py @@ -117,7 +117,7 @@ def cmake_args(self): self.define_from_variant('LCI_USE_GPROF', 'gprof'), ] - if self.spec.variants['default-dreg'].value != 'auto': + if not self.spec.satisfies('default-dreg=auto'): arg = self.define_from_variant('LCI_USE_DREG_DEFAULT', 'default-dreg') args.append(arg)