diff options
author | Wouter Deconinck <wdconinc@jlab.org> | 2020-11-16 19:14:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 17:14:46 -0800 |
commit | 423e80af23cc9ff54b14fc268434c38fc9f7f050 (patch) | |
tree | 2061394398ca5b66fd322347abccc36b65fce6e1 | |
parent | ef0a555ca2711979e3374a57becb8c80efe695de (diff) | |
download | spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.gz spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.bz2 spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.xz spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.zip |
spack edit: accept readonly packages (#19949)
-rw-r--r-- | lib/spack/spack/cmd/edit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/edit.py b/lib/spack/spack/cmd/edit.py index 6cdc3b788d..e01d50dd03 100644 --- a/lib/spack/spack/cmd/edit.py +++ b/lib/spack/spack/cmd/edit.py @@ -40,7 +40,7 @@ def edit_package(name, repo_path, namespace): if os.path.exists(path): if not os.path.isfile(path): tty.die("Something is wrong. '{0}' is not a file!".format(path)) - if not os.access(path, os.R_OK | os.W_OK): + if not os.access(path, os.R_OK): tty.die("Insufficient permissions on '%s'!" % path) else: tty.die("No package for '{0}' was found.".format(spec.name), |