summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2016-09-15 04:48:28 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-15 10:48:28 +0800
commit7043fff8078d0b7a62895302dabbe71904220edf (patch)
tree0b6cb8c8eb234130ff01b38c2b8c3879b4f992f8
parent7fd44a983d5d33b7571468c8726ec5692db6871d (diff)
downloadspack-7043fff8078d0b7a62895302dabbe71904220edf.tar.gz
spack-7043fff8078d0b7a62895302dabbe71904220edf.tar.bz2
spack-7043fff8078d0b7a62895302dabbe71904220edf.tar.xz
spack-7043fff8078d0b7a62895302dabbe71904220edf.zip
Fix location -p and -P (#1776)
-rw-r--r--lib/spack/spack/cmd/location.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/location.py b/lib/spack/spack/cmd/location.py
index b9c8b5c330..54f7185707 100644
--- a/lib/spack/spack/cmd/location.py
+++ b/lib/spack/spack/cmd/location.py
@@ -25,7 +25,6 @@
import argparse
import llnl.util.tty as tty
-from llnl.util.filesystem import join_path
import spack
import spack.cmd
@@ -77,7 +76,7 @@ def location(parser, args):
print spack.prefix
elif args.packages:
- print spack.repo.root
+ print spack.repo.first_repo().root
elif args.stages:
print spack.stage_path
@@ -99,7 +98,7 @@ def location(parser, args):
if args.package_dir:
# This one just needs the spec name.
- print join_path(spack.repo.root, spec.name)
+ print spack.repo.dirname_for_package_name(spec.name)
else:
# These versions need concretized specs.