summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Moody <moody20@llnl.gov>2014-03-13 14:43:26 -0700
committerGregory L. Lee <lee218@llnl.gov>2014-03-14 08:42:07 -0700
commitab8e79fc2d183dd434dc05d2522166645f1fbb36 (patch)
tree40a5b7268596fde8443189e3b0249db62b219d4d /lib
parent26b86db8a46048dddd30fcca5ade87c46debf35a (diff)
downloadspack-ab8e79fc2d183dd434dc05d2522166645f1fbb36.tar.gz
spack-ab8e79fc2d183dd434dc05d2522166645f1fbb36.tar.bz2
spack-ab8e79fc2d183dd434dc05d2522166645f1fbb36.tar.xz
spack-ab8e79fc2d183dd434dc05d2522166645f1fbb36.zip
change rename to move in mirror creation
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/mirror.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/mirror.py b/lib/spack/spack/cmd/mirror.py
index 77cbb1eb58..ec91ef0fd5 100644
--- a/lib/spack/spack/cmd/mirror.py
+++ b/lib/spack/spack/cmd/mirror.py
@@ -23,6 +23,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
import os
+import shutil
import argparse
import spack.packages as packages
@@ -78,7 +79,7 @@ def mirror(parser, args):
final_dst = new_path(pkg_path, basename)
os.chdir(working_dir)
- os.rename(stage.archive_file, final_dst)
+ shutil.move(stage.archive_file, final_dst)
tty.msg("Added %s to mirror" % final_dst)
finally: