summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOliver Breitwieser <oliver.breitwieser@kip.uni-heidelberg.de>2019-07-13 01:30:12 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-07-12 16:30:12 -0700
commitd1af7ae5abdfbca7ff6fb6c2d24699625ac027f0 (patch)
tree53dba4fb20bf85585f8d16f8efb6970c4f81fe0a /lib
parent76f1ee5f32deec16d25561fdab3b242249e37145 (diff)
downloadspack-d1af7ae5abdfbca7ff6fb6c2d24699625ac027f0.tar.gz
spack-d1af7ae5abdfbca7ff6fb6c2d24699625ac027f0.tar.bz2
spack-d1af7ae5abdfbca7ff6fb6c2d24699625ac027f0.tar.xz
spack-d1af7ae5abdfbca7ff6fb6c2d24699625ac027f0.zip
Copy --{use,no}-cache from install to bootstrap (#11786)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/bootstrap.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/bootstrap.py b/lib/spack/spack/cmd/bootstrap.py
index bf0002630b..27ebb7320d 100644
--- a/lib/spack/spack/cmd/bootstrap.py
+++ b/lib/spack/spack/cmd/bootstrap.py
@@ -27,6 +27,14 @@ def setup_parser(subparser):
'-v', '--verbose', action='store_true', dest='verbose',
help="display verbose build output while installing")
+ cache_group = subparser.add_mutually_exclusive_group()
+ cache_group.add_argument(
+ '--use-cache', action='store_true', dest='use_cache', default=True,
+ help="check for pre-built Spack packages in mirrors (default)")
+ cache_group.add_argument(
+ '--no-cache', action='store_false', dest='use_cache', default=True,
+ help="do not check for pre-built Spack packages in mirrors")
+
cd_group = subparser.add_mutually_exclusive_group()
arguments.add_common_arguments(cd_group, ['clean', 'dirty'])
@@ -37,7 +45,8 @@ def bootstrap(parser, args, **kwargs):
'keep_stage': args.keep_stage,
'install_deps': 'dependencies',
'verbose': args.verbose,
- 'dirty': args.dirty
+ 'dirty': args.dirty,
+ 'use_cache': args.use_cache
})
# Define requirement dictionary defining general specs which need