diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2022-01-10 10:10:49 -0800 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-04-14 11:08:17 +0200 |
commit | 1fd6fedba5e8193a040c3214c00c04792e15d9ed (patch) | |
tree | 978d5a0d3894fd8267fb35778e36ebf6c6aa3cef | |
parent | 69cbf10a804ad7dbf99d2fc08d2c20c7ba2ef7a2 (diff) | |
download | spack-1fd6fedba5e8193a040c3214c00c04792e15d9ed.tar.gz spack-1fd6fedba5e8193a040c3214c00c04792e15d9ed.tar.bz2 spack-1fd6fedba5e8193a040c3214c00c04792e15d9ed.tar.xz spack-1fd6fedba5e8193a040c3214c00c04792e15d9ed.zip |
stage.steal_source: preserve symlinks
This avoids dangling symlink errors. ignore_dangling_symlinks option would be more-targeted but is only available for Python >= 3.2 (#28318)
-rw-r--r-- | lib/spack/spack/stage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index bffd06ab73..df1f6761ac 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -533,7 +533,7 @@ class Stage(object): for entry in hidden_entries + entries: if os.path.isdir(entry): d = os.path.join(dest, os.path.basename(entry)) - shutil.copytree(entry, d) + shutil.copytree(entry, d, symlinks=True) else: shutil.copy2(entry, dest) |