diff options
author | Dylan Simon <dylan@dylex.net> | 2021-11-09 05:52:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 10:52:08 +0000 |
commit | 2b990b400e5670489c4a1f598591b46d55ab1aac (patch) | |
tree | 6c1af7b28ea209610d540c47b9053ffb432f9789 | |
parent | 34be8d0670d75cae5e45cb0d145d726e67db1485 (diff) | |
download | spack-2b990b400e5670489c4a1f598591b46d55ab1aac.tar.gz spack-2b990b400e5670489c4a1f598591b46d55ab1aac.tar.bz2 spack-2b990b400e5670489c4a1f598591b46d55ab1aac.tar.xz spack-2b990b400e5670489c4a1f598591b46d55ab1aac.zip |
make --enable-locks actually enable locks (#24675)
-rw-r--r-- | lib/spack/spack/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py index 31a4bfe4ed..86f5c76002 100644 --- a/lib/spack/spack/main.py +++ b/lib/spack/spack/main.py @@ -491,8 +491,9 @@ def setup_main_options(args): # override lock configuration if passed on command line if args.locks is not None: - spack.util.lock.check_lock_safety(spack.paths.prefix) - spack.config.set('config:locks', False, scope='command_line') + if args.locks is False: + spack.util.lock.check_lock_safety(spack.paths.prefix) + spack.config.set('config:locks', args.locks, scope='command_line') if args.mock: rp = spack.repo.RepoPath(spack.paths.mock_packages_path) |