Fix location -p and -P (#1776)
This commit is contained in:
parent
7fd44a983d
commit
7043fff807
@ -25,7 +25,6 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
import llnl.util.tty as tty
|
import llnl.util.tty as tty
|
||||||
from llnl.util.filesystem import join_path
|
|
||||||
|
|
||||||
import spack
|
import spack
|
||||||
import spack.cmd
|
import spack.cmd
|
||||||
@ -77,7 +76,7 @@ def location(parser, args):
|
|||||||
print spack.prefix
|
print spack.prefix
|
||||||
|
|
||||||
elif args.packages:
|
elif args.packages:
|
||||||
print spack.repo.root
|
print spack.repo.first_repo().root
|
||||||
|
|
||||||
elif args.stages:
|
elif args.stages:
|
||||||
print spack.stage_path
|
print spack.stage_path
|
||||||
@ -99,7 +98,7 @@ def location(parser, args):
|
|||||||
|
|
||||||
if args.package_dir:
|
if args.package_dir:
|
||||||
# This one just needs the spec name.
|
# 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:
|
else:
|
||||||
# These versions need concretized specs.
|
# These versions need concretized specs.
|
||||||
|
Loading…
Reference in New Issue
Block a user