Merge pull request #1688 from LLNL/bugfix/database-issues

Fix dependency bug with `spack reindex`.
This commit is contained in:
Todd Gamblin 2016-09-01 11:39:21 -07:00 committed by GitHub
commit 0f26bb9e92

View File

@ -436,7 +436,7 @@ def _increment_ref_count(self, spec, directory_layout=None):
self._data[key] = InstallRecord(spec.copy(), path, installed)
for dep in spec.dependencies('link'):
for dep in spec.dependencies(('link', 'run')):
self._increment_ref_count(dep)
self._data[key].ref_count += 1