summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/stage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py
index b337ae5617..fb0df21e6f 100644
--- a/lib/spack/spack/stage.py
+++ b/lib/spack/spack/stage.py
@@ -15,7 +15,7 @@ from six import iteritems
from six.moves.urllib.parse import urljoin
import llnl.util.tty as tty
-from llnl.util.filesystem import mkdirp, can_access, copy, copy_tree
+from llnl.util.filesystem import mkdirp, can_access, install, install_tree
from llnl.util.filesystem import remove_if_dead_link, remove_linked_tree
import spack.paths
@@ -548,9 +548,9 @@ class ResourceStage(Stage):
src = os.path.realpath(source_path)
if os.path.isdir(src):
- copy_tree(src, destination_path)
+ install_tree(src, destination_path)
else:
- copy(src, destination_path)
+ install(src, destination_path)
@pattern.composite(method_list=[