summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2013-11-23 13:04:36 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2013-11-23 13:04:36 -0800
commit389fa1792d8f0ac7945b80620c386f2d614a7921 (patch)
tree76f0da2238b8db2303b5b98f91f4d4a49cfd70fc /bin
parentfe7da0dcffebc6f8953905a0de5483ca977e3fe9 (diff)
downloadspack-389fa1792d8f0ac7945b80620c386f2d614a7921.tar.gz
spack-389fa1792d8f0ac7945b80620c386f2d614a7921.tar.bz2
spack-389fa1792d8f0ac7945b80620c386f2d614a7921.tar.xz
spack-389fa1792d8f0ac7945b80620c386f2d614a7921.zip
Added web spider capability for listing versions.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index a4cd169bf1..45a31fbeb0 100755
--- a/bin/spack
+++ b/bin/spack
@@ -30,6 +30,8 @@ parser.add_argument('-v', '--verbose', action='store_true', dest='verbose',
help="print additional output during builds")
parser.add_argument('-d', '--debug', action='store_true', dest='debug',
help="write out debug logs during compile")
+parser.add_argument('-m', '--mock', action='store_true', dest='mock',
+ help="Use mock packages instead of real ones.")
# each command module implements a parser() function, to which we pass its
# subparser for setup.
@@ -46,6 +48,10 @@ args = parser.parse_args()
# Set up environment based on args.
spack.verbose = args.verbose
spack.debug = args.debug
+if args.mock:
+ from spack.util.filesystem import new_path
+ mock_path = new_path(spack.module_path, 'test', 'mock_packages')
+ spack.packages_path = mock_path
# Try to load the particular command asked for and run it
command = spack.cmd.get_command(args.command)