diff options
author | Marc Allen <allen.marc@gmail.com> | 2020-04-16 15:06:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 14:06:13 -0700 |
commit | a704922c29d7b0866757850bc152f0b6fdcb2ed9 (patch) | |
tree | 29891288fdc920828b36abaa2c46204ff118b6e0 /lib | |
parent | 07a4ac67b83a3323b46b45a5bfcda68ee0908c7e (diff) | |
download | spack-a704922c29d7b0866757850bc152f0b6fdcb2ed9.tar.gz spack-a704922c29d7b0866757850bc152f0b6fdcb2ed9.tar.bz2 spack-a704922c29d7b0866757850bc152f0b6fdcb2ed9.tar.xz spack-a704922c29d7b0866757850bc152f0b6fdcb2ed9.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/buildcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |