diff options
author | Dan Lipsa <dan.lipsa@kitware.com> | 2023-07-17 17:33:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 14:33:18 -0700 |
commit | 4831d458521946c505582caa477680717b6ebe08 (patch) | |
tree | 1e7881c0850aa3257bd84f5b61c4ceddb9f95ce6 /.github | |
parent | f05837a4801f5f5606cf26f2a7754a1ab1d67495 (diff) | |
download | spack-4831d458521946c505582caa477680717b6ebe08.tar.gz spack-4831d458521946c505582caa477680717b6ebe08.tar.bz2 spack-4831d458521946c505582caa477680717b6ebe08.tar.xz spack-4831d458521946c505582caa477680717b6ebe08.zip |
Decompression: fix naming issues (#37749)
* When using system tools to unpack a .gz file, the input file needs a
different name than the output file. Normally, we generate this new
name by stripping off the .gz extension off of the file name.
This was not sufficient if the file name did not have an extension,
so we temporarily rename the file in that case.
* When using system tar utility to untar on Windows, we were (erroneously)
skipping the actual untar step if the filename was lacking a .tar
extension
* For foo.txz, we were not changing the extension of the decompressed file
(i.e. we would decompress foo.txz to foo.txz). This did not cause any
problems, but is confusing, so has been updated such that the output
filename reflects its decompressed state (i.e. foo.tar).
* Added test for strip_compression_extension
* Update test_native_unpacking to test each archive type with and without
an extension as part of the file name (i.e. we test "foo.tar.gz", but
also make sure we decompress properly if it is named "foo").
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions