summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@jlab.org>2020-11-16 19:14:46 -0600
committerGitHub <noreply@github.com>2020-11-16 17:14:46 -0800
commit423e80af23cc9ff54b14fc268434c38fc9f7f050 (patch)
tree2061394398ca5b66fd322347abccc36b65fce6e1 /lib
parentef0a555ca2711979e3374a57becb8c80efe695de (diff)
downloadspack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.gz
spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.bz2
spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.tar.xz
spack-423e80af23cc9ff54b14fc268434c38fc9f7f050.zip
spack edit: accept readonly packages (#19949)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/edit.py2
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),