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
1 changed files with 5 additions and 3 deletions

View File

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