summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-12-04 10:47:01 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2014-12-04 10:47:01 -0800
commitc774455fc5df90d15d7aad5d239eb59c1ad354eb (patch)
tree3af318ea022ebeb4760d6b9ba39e0bb4c642971c
parentc19347a055f3515bd53ea611117baa7394bb7f8c (diff)
downloadspack-c774455fc5df90d15d7aad5d239eb59c1ad354eb.tar.gz
spack-c774455fc5df90d15d7aad5d239eb59c1ad354eb.tar.bz2
spack-c774455fc5df90d15d7aad5d239eb59c1ad354eb.tar.xz
spack-c774455fc5df90d15d7aad5d239eb59c1ad354eb.zip
Bugfix in create command.
-rw-r--r--lib/spack/spack/cmd/create.py4
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: