diff options
author | Matthew LeGendre <legendre1@llnl.gov> | 2014-03-13 16:52:21 -0700 |
---|---|---|
committer | Matthew LeGendre <legendre1@llnl.gov> | 2014-03-13 16:52:21 -0700 |
commit | 6f43da74edc03c721c3f604819da07a70634da3b (patch) | |
tree | b010f7345e05586a4a7cdbc3626d1b823eca9703 /bin | |
parent | 78abdcea16948eb1a792dc9b672871a04cac8e93 (diff) | |
parent | 03ee31e0e8cf7c58eb4aafc6912e698c0a23427e (diff) | |
download | spack-6f43da74edc03c721c3f604819da07a70634da3b.tar.gz spack-6f43da74edc03c721c3f604819da07a70634da3b.tar.bz2 spack-6f43da74edc03c721c3f604819da07a70634da3b.tar.xz spack-6f43da74edc03c721c3f604819da07a70634da3b.zip |
Merge branch 'master' into spindle
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spack | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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: |