diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2019-06-12 17:07:47 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-06-12 17:07:47 -0700 |
commit | 16530f84be04b8466769b9b74fe920d67006b988 (patch) | |
tree | 176d21a328e0014ac77d7e14f0f653353581b1af /lib | |
parent | 3ce90741a3dd82b22139f82a555e0158c796c169 (diff) | |
download | spack-16530f84be04b8466769b9b74fe920d67006b988.tar.gz spack-16530f84be04b8466769b9b74fe920d67006b988.tar.bz2 spack-16530f84be04b8466769b9b74fe920d67006b988.tar.xz spack-16530f84be04b8466769b9b74fe920d67006b988.zip |
Update remaining packages to use Stage.source_path (#11662)
#11528 updated Stage to always store a Package's source in a fixed
directory accessible via `Stage.source_path` This left behind a
number of packages which were expecting to access the source code
via `Stage.path`. This Updates those packages to use
`Stage.source_path` instead.
This also updates the name of the fixed directory: The original name
of the fixed directory was "src", so if an expanded archive created a
"src" directory, then users inspecting the directory structure could
see paths like "src/src" (which wasn't wrong but could be confusing).
Therefore this also updates the name of the fixed directory to
"spack-src".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/stage.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/test/stage.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 9ecc148ad8..34d19860fa 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -28,7 +28,7 @@ import spack.util.pattern as pattern from spack.util.path import canonicalize_path from spack.util.crypto import prefix_bits, bit_length -_source_path_subdir = 'src' +_source_path_subdir = 'spack-src' _stage_prefix = 'spack-stage-' diff --git a/lib/spack/spack/test/stage.py b/lib/spack/spack/test/stage.py index 2862abc1d3..ba0249f6eb 100644 --- a/lib/spack/spack/test/stage.py +++ b/lib/spack/spack/test/stage.py @@ -48,7 +48,7 @@ _include_extra = 3 # to have the following structure: # # TMPDIR/ temp stage dir -# src/ well-known stage source directory +# spack-src/ well-known stage source directory # _readme_fn Optional test_readme (contains _readme_contents) # _hidden_fn Optional hidden file (contains _hidden_contents) # _archive_fn archive_url = file:///path/to/_archive_fn @@ -56,7 +56,7 @@ _include_extra = 3 # while exploding tarball directories are expected to be structured as follows: # # TMPDIR/ temp stage dir -# src/ well-known stage source directory +# spack-src/ well-known stage source directory # archive_name/ archive dir # _readme_fn test_readme (contains _readme_contents) # _extra_fn test_extra file (contains _extra_contents) |