From a704922c29d7b0866757850bc152f0b6fdcb2ed9 Mon Sep 17 00:00:00 2001 From: Marc Allen Date: Thu, 16 Apr 2020 15:06:13 -0600 Subject: Bugfix: For spack buildcache check, Handle specs where only the hash is (#15663) provided (#15662). Prior to this fix, the checked Spec object would not be populated, and concretization would fail. Co-authored-by: Marc Allen --- lib/spack/spack/cmd/buildcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py index 35e735cdf1..ee00f6259f 100644 --- a/lib/spack/spack/cmd/buildcache.py +++ b/lib/spack/spack/cmd/buildcache.py @@ -609,7 +609,7 @@ def get_concrete_spec(args): if spec_str: try: - spec = Spec(spec_str) + spec = find_matching_specs(spec_str)[0] spec.concretize() except SpecError as spec_error: tty.error('Unable to concrectize spec {0}'.format(args.spec)) -- cgit v1.2.3-70-g09d2