temporarily wrap archiving with conditional to avoid moving (this still causes a failure on the initial download)

This commit is contained in:
Peter Scheibel 2016-03-21 20:55:23 -07:00
parent b255f02762
commit 41a97c8f80

View File

@ -323,10 +323,11 @@ def check(self):
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):