summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-09-27 00:03:23 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-10-03 16:57:32 -0700
commit727d313c3052d117ec3268ccc8d3f34f1c443b1c (patch)
treef0e51a235f3b0673e4e5c34e0e28faaa3dc50b05 /lib
parentfaae720c3693733ac272c191b7c3ab4908b02b6b (diff)
downloadspack-727d313c3052d117ec3268ccc8d3f34f1c443b1c.tar.gz
spack-727d313c3052d117ec3268ccc8d3f34f1c443b1c.tar.bz2
spack-727d313c3052d117ec3268ccc8d3f34f1c443b1c.tar.xz
spack-727d313c3052d117ec3268ccc8d3f34f1c443b1c.zip
Fix location.py to use source_path
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/location.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/location.py b/lib/spack/spack/cmd/location.py
index 074d984ee6..e92737ab4e 100644
--- a/lib/spack/spack/cmd/location.py
+++ b/lib/spack/spack/cmd/location.py
@@ -52,7 +52,7 @@ def setup_parser(subparser):
'-s', '--stage-dir', action='store_true', help="Stage directory for a spec.")
directories.add_argument(
'-b', '--build-dir', action='store_true',
- help="Expanded archive directory for a spec (requires it to be staged first).")
+ help="Checked out or expanded source directory for a spec (requires it to be staged first).")
subparser.add_argument(
'spec', nargs=argparse.REMAINDER, help="spec of package to fetch directory for.")
@@ -86,8 +86,8 @@ def location(parser, args):
print pkg.stage.path
else: # args.build_dir is the default.
- if not os.listdir(pkg.stage.path):
+ if not pkg.stage.source_path:
tty.die("Build directory does not exist yet. Run this to create it:",
"spack stage " + " ".join(args.spec))
- print pkg.stage.expanded_archive_path
+ print pkg.stage.source_path