diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-10-13 15:41:57 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-10-13 19:46:57 -0700 |
commit | 9ccaf6474d1561dbcb6fbf5c6001726c7a01e98f (patch) | |
tree | a51aac415a03f1f3e2dbcbf62679404fe79681dc /lib | |
parent | 55f85f23079b7229204e89e29d568ac969931449 (diff) | |
download | spack-9ccaf6474d1561dbcb6fbf5c6001726c7a01e98f.tar.gz spack-9ccaf6474d1561dbcb6fbf5c6001726c7a01e98f.tar.bz2 spack-9ccaf6474d1561dbcb6fbf5c6001726c7a01e98f.tar.xz spack-9ccaf6474d1561dbcb6fbf5c6001726c7a01e98f.zip |
Don't redundantly check for providers of non-virtuals.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/spec.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 4ae7a1a5b4..7704d7df72 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -2060,6 +2060,9 @@ class Spec(object): index = ProviderIndex([dep], restrict=True) items = list(spec_deps.items()) for name, vspec in items: + if not vspec.virtual: + continue + if index.providers_for(vspec): vspec._replace_with(dep) del spec_deps[vspec.name] |