diff options
author | Tom Scogland <scogland1@llnl.gov> | 2015-12-10 09:24:01 -0800 |
---|---|---|
committer | Tom Scogland <scogland1@llnl.gov> | 2015-12-10 09:24:01 -0800 |
commit | 281a869ef699c354f31bbb069ab28012b65c9b4c (patch) | |
tree | b976789c2c4b932685fa94e2d1eec5dbef561eb0 | |
parent | 786f4cd2c2cc492f25f8886223efaa397ac97185 (diff) | |
download | spack-281a869ef699c354f31bbb069ab28012b65c9b4c.tar.gz spack-281a869ef699c354f31bbb069ab28012b65c9b4c.tar.bz2 spack-281a869ef699c354f31bbb069ab28012b65c9b4c.tar.xz spack-281a869ef699c354f31bbb069ab28012b65c9b4c.zip |
fix path resolution for mirror packages, especially with dependency fetching
-rw-r--r-- | lib/spack/spack/cmd/mirror.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/mirror.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/mirror.py b/lib/spack/spack/cmd/mirror.py index 10348e5b99..89d51bbe04 100644 --- a/lib/spack/spack/cmd/mirror.py +++ b/lib/spack/spack/cmd/mirror.py @@ -136,6 +136,7 @@ def mirror_create(args): if args.dependencies: new_specs = set() for spec in specs: + spec.concretize() for s in spec.traverse(): new_specs.add(s) specs = list(new_specs) diff --git a/lib/spack/spack/mirror.py b/lib/spack/spack/mirror.py index ee0bf6de11..6fbf82de14 100644 --- a/lib/spack/spack/mirror.py +++ b/lib/spack/spack/mirror.py @@ -146,7 +146,7 @@ def create(path, specs, **kwargs): stage = None try: # create a subdirectory for the current package@version - archive_path = os.path.abspath(join_path(path, mirror_archive_path(spec))) + archive_path = os.path.abspath(join_path(mirror_root, mirror_archive_path(spec))) subdir = os.path.dirname(archive_path) mkdirp(subdir) |