summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-31 11:34:00 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-31 11:34:27 -0700
commita670408617b76777d35185aa554eeaf3892e0188 (patch)
tree389db5527dd8324a0f20e62813f13bf7fa26c4a9
parent1f93c39c58f65b2b40e2f31509b488ea497ce9c0 (diff)
downloadspack-a670408617b76777d35185aa554eeaf3892e0188.tar.gz
spack-a670408617b76777d35185aa554eeaf3892e0188.tar.bz2
spack-a670408617b76777d35185aa554eeaf3892e0188.tar.xz
spack-a670408617b76777d35185aa554eeaf3892e0188.zip
Quick fix for pkg diff.
-rw-r--r--lib/spack/spack/cmd/pkg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/pkg.py b/lib/spack/spack/cmd/pkg.py
index cf478d3763..20a3fc5fc2 100644
--- a/lib/spack/spack/cmd/pkg.py
+++ b/lib/spack/spack/cmd/pkg.py
@@ -77,7 +77,8 @@ def get_git():
def list_packages(rev):
git = get_git()
- relpath = spack.packages_path[len(spack.prefix + os.path.sep):] + os.path.sep
+ pkgpath = os.path.join(spack.packages_path, 'packages')
+ relpath = pkgpath[len(spack.prefix + os.path.sep):] + os.path.sep
output = git('ls-tree', '--full-tree', '--name-only', rev, relpath,
output=str)
return sorted(line[len(relpath):] for line in output.split('\n') if line)