Skip to content
Snippets Groups Projects
Commit a6704086 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Quick fix for pkg diff.

parent 1f93c39c
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,8 @@ def get_git(): ...@@ -77,7 +77,8 @@ def get_git():
def list_packages(rev): def list_packages(rev):
git = get_git() 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 = git('ls-tree', '--full-tree', '--name-only', rev, relpath,
output=str) output=str)
return sorted(line[len(relpath):] for line in output.split('\n') if line) return sorted(line[len(relpath):] for line in output.split('\n') if line)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment