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 <mrcall@amazon.com>
This commit is contained in:
Marc Allen 2020-04-16 15:06:13 -06:00 committed by GitHub
parent 07a4ac67b8
commit a704922c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))