summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-09-01 11:09:28 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-01 11:25:01 -0700
commitc46a15b574bcf86e93fc5779b6f1957a8b407173 (patch)
tree9510f680002ab75745941d29f596114d914a94e1 /lib
parent4a87d4ab8ed873e6450df06512e09f815a276cd8 (diff)
downloadspack-c46a15b574bcf86e93fc5779b6f1957a8b407173.tar.gz
spack-c46a15b574bcf86e93fc5779b6f1957a8b407173.tar.bz2
spack-c46a15b574bcf86e93fc5779b6f1957a8b407173.tar.xz
spack-c46a15b574bcf86e93fc5779b6f1957a8b407173.zip
Fix dependency bug in database. Fixes #1265, #1320.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py
index f3dcdef0a9..1240e9a658 100644
--- a/lib/spack/spack/database.py
+++ b/lib/spack/spack/database.py
@@ -436,7 +436,7 @@ class Database(object):
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