diff options
-rw-r--r-- | lib/spack/spack/cmd/location.py | 6 |
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 |