diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-10-28 14:49:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 14:49:23 +0200 |
commit | e9f3ef785ddcc599003534d8641551182a3fbc2a (patch) | |
tree | 8af5bb6830056429cd41adadb9b232b07545eee3 /pytest.ini | |
parent | 7c886bcac19d9eb52478deb825dcaf58b116e4e4 (diff) | |
download | spack-e9f3ef785ddcc599003534d8641551182a3fbc2a.tar.gz spack-e9f3ef785ddcc599003534d8641551182a3fbc2a.tar.bz2 spack-e9f3ef785ddcc599003534d8641551182a3fbc2a.tar.xz spack-e9f3ef785ddcc599003534d8641551182a3fbc2a.zip |
Fix sbang hook for non-writable files (#27007)
* Fix sbang hook for non-writable files
PR #26793 seems to have broken the sbang hook for files with missing
write permissions. Installing perl now breaks with the following error:
```
==> [2021-10-28-12:09:26.832759] Error: PermissionError: [Errno 13] Permission denied: '$SPACK/opt/spack/linux-fedora34-zen2/gcc-11.2.1/perl-5.34.0-afuweplnhphcojcowsc2mb5ngncmczk4/bin/cpanm'
```
Temporarily add write permissions to the original file so it can be
overwritten with the patched one.
And test that file permissions are preserved in sbang even for non-writable files
Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Diffstat (limited to 'pytest.ini')
0 files changed, 0 insertions, 0 deletions