summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/asp.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index 7b13b4baa3..6ddca741ce 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -2730,9 +2730,8 @@ class SpecBuilder:
spec.compiler_flags.update({flag_type: ordered_compiler_flags})
- def deprecated(self, pkg, version):
- msg = 'using "{0}@{1}" which is a deprecated version'
- tty.warn(msg.format(pkg, version))
+ def deprecated(self, node: NodeArgument, version: str) -> None:
+ tty.warn(f'using "{node.pkg}@{version}" which is a deprecated version')
@staticmethod
def sort_fn(function_tuple):