Don't redundantly check for providers of non-virtuals.

This commit is contained in:
Todd Gamblin 2017-10-13 15:41:57 -07:00
parent 55f85f2307
commit 9ccaf6474d

View File

@ -2060,6 +2060,9 @@ def _merge_dependency(
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]