diff options
Diffstat (limited to 'lib')
-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), |