From 423e80af23cc9ff54b14fc268434c38fc9f7f050 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 16 Nov 2020 19:14:46 -0600 Subject: spack edit: accept readonly packages (#19949) --- lib/spack/spack/cmd/edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3-70-g09d2