summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMatthew LeGendre <legendre1@llnl.gov>2014-03-13 15:18:15 -0700
committerMatthew LeGendre <legendre1@llnl.gov>2014-03-13 15:18:15 -0700
commit67203f17e09da90a62d4ae8105c3de5b73c09951 (patch)
tree8e979b0a30c78d155616e1d478c68637f39960b8 /bin
parent15840cc677ae2ead701b0db3000e6270ef2f7df7 (diff)
parent77aeac65013250b1bd3beccb4c2f6dc6d3138ac9 (diff)
downloadspack-67203f17e09da90a62d4ae8105c3de5b73c09951.tar.gz
spack-67203f17e09da90a62d4ae8105c3de5b73c09951.tar.bz2
spack-67203f17e09da90a62d4ae8105c3de5b73c09951.tar.xz
spack-67203f17e09da90a62d4ae8105c3de5b73c09951.zip
Merge branch 'master' into zippackages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/spack b/bin/spack
index 72fd47d732..775a9dbd08 100755
--- a/bin/spack
+++ b/bin/spack
@@ -51,9 +51,11 @@ parser = argparse.ArgumentParser(
parser.add_argument('-V', '--version', action='version',
version="%s" % spack.spack_version)
parser.add_argument('-v', '--verbose', action='store_true', dest='verbose',
- help="print additional output during builds")
+ help="Print additional output during builds")
parser.add_argument('-d', '--debug', action='store_true', dest='debug',
- help="write out debug logs during compile")
+ help="Write out debug logs during compile")
+parser.add_argument('-k', '--insecure', action='store_true', dest='insecure',
+ help="Do not check ssl certificates when downloading archives.")
parser.add_argument('-m', '--mock', action='store_true', dest='mock',
help="Use mock packages instead of real ones.")
@@ -76,6 +78,11 @@ if args.mock:
mock_path = new_path(spack.module_path, 'test', 'mock_packages')
spack.packages_path = mock_path
+# If the user asked for it, don't check ssl certs.
+if args.insecure:
+ tty.warn("You asked for --insecure, which does not check SSL certificates.")
+ spack.curl.add_default_arg('-k')
+
# Try to load the particular command asked for and run it
command = spack.cmd.get_command(args.command)
try: