diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2016-03-21 20:55:23 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2016-03-21 20:55:23 -0700 |
commit | 41a97c8f80b8e93a7b180bd4d4a5a4286ce6f311 (patch) | |
tree | b78ae93840f7e872e593eaec53a62cb47ceb6d51 | |
parent | b255f02762375cee064b062837581e5466fdb908 (diff) | |
download | spack-41a97c8f80b8e93a7b180bd4d4a5a4286ce6f311.tar.gz spack-41a97c8f80b8e93a7b180bd4d4a5a4286ce6f311.tar.bz2 spack-41a97c8f80b8e93a7b180bd4d4a5a4286ce6f311.tar.xz spack-41a97c8f80b8e93a7b180bd4d4a5a4286ce6f311.zip |
temporarily wrap archiving with conditional to avoid moving (this still causes a failure on the initial download)
-rw-r--r-- | lib/spack/spack/stage.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 8933ad6da2..61faec6de9 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -323,10 +323,11 @@ class Stage(object): def cache_local(self): archiveDst = join_path(os.path.abspath(spack.cache_path), self.mirror_path) - mkdirp(os.path.dirname(archiveDst)) - # TODO: this moves the archive for URLFetchStrategy vs. a copy - edit - # to do a move? - self.fetcher.archive(archiveDst) + if not os.path.exists(archiveDst): #tmp conditional + mkdirp(os.path.dirname(archiveDst)) + # TODO: this moves the archive for URLFetchStrategy vs. a copy - + # edit to do a move? + self.fetcher.archive(archiveDst) def expand_archive(self): |