gather: Fix formatting

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-09-27 13:55:08 +02:00
parent 428f8297e1
commit 89fcb79aca

View File

@ -323,9 +323,11 @@ class Gather(GatherBase):
# DNF package has the _pre and _post attributes only if they are not # DNF package has the _pre and _post attributes only if they are not
# empty. # empty.
requires = (pkg.requires + requires = (
getattr(pkg, 'requires_pre', []) + pkg.requires
getattr(pkg, 'requires_post', [])) + getattr(pkg, 'requires_pre', [])
+ getattr(pkg, 'requires_post', [])
)
q = self.q_binary_packages.filter(provides=requires).apply() q = self.q_binary_packages.filter(provides=requires).apply()
for req in requires: for req in requires: