spec.patches: fix dictionary reference (#5608)

This fixes a loop that was iterating through the keys of a dictionary
when it was intending to use the values.
This commit is contained in:
scheibelp 2017-10-04 17:14:58 -07:00 committed by GitHub
parent 44fbf95dd4
commit 395000c385

View file

@ -2535,8 +2535,9 @@ def patches(self):
# if not found in this package, check immediate dependents
# for dependency patches
for dep in self._dependents:
patch = dep.parent.package.lookup_patch(sha256)
for dep_spec in self._dependents.values():
patch = dep_spec.parent.package.lookup_patch(sha256)
if patch:
patches.append(patch)