Fix dependency bug in database. Fixes #1265, #1320.

This commit is contained in:
Todd Gamblin 2016-09-01 11:09:28 -07:00
parent 4a87d4ab8e
commit c46a15b574

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