diff options
-rw-r--r-- | lib/spack/spack/cmd/create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index 1b9ad524c4..f0ea867332 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -180,11 +180,11 @@ def create(parser, args): tty.msg("Aborted.") return - sorted_versions = list(reversed(versions)) + sorted_versions = list(reversed(versions.keys())) guesser = ConfigureGuesser() ver_hash_tuples = spack.cmd.checksum.get_checksums( - versions[:archives_to_fetch], urls[:archives_to_fetch], + sorted_versions[:archives_to_fetch], urls[:archives_to_fetch], first_stage_function=guesser, keep_stage=args.keep_stage) if not ver_hash_tuples: |