make --enable-locks actually enable locks (#24675)
This commit is contained in:
parent
f92a2d688d
commit
544826c825
1 changed files with 3 additions and 2 deletions
|
@ -491,8 +491,9 @@ def setup_main_options(args):
|
||||||
|
|
||||||
# override lock configuration if passed on command line
|
# override lock configuration if passed on command line
|
||||||
if args.locks is not None:
|
if args.locks is not None:
|
||||||
spack.util.lock.check_lock_safety(spack.paths.prefix)
|
if args.locks is False:
|
||||||
spack.config.set('config:locks', False, scope='command_line')
|
spack.util.lock.check_lock_safety(spack.paths.prefix)
|
||||||
|
spack.config.set('config:locks', args.locks, scope='command_line')
|
||||||
|
|
||||||
if args.mock:
|
if args.mock:
|
||||||
rp = spack.repo.RepoPath(spack.paths.mock_packages_path)
|
rp = spack.repo.RepoPath(spack.paths.mock_packages_path)
|
||||||
|
|
Loading…
Reference in a new issue