pkgset: Only use package whitelist if enabled

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-02-14 10:33:36 +01:00
parent ef058d1f9b
commit cc8c7a702c

View File

@ -369,7 +369,7 @@ class KojiPackageSet(PackageSetBase):
result_srpms.append((rpm_info, build_info)) result_srpms.append((rpm_info, build_info))
else: else:
result_rpms.append((rpm_info, build_info)) result_rpms.append((rpm_info, build_info))
if self.packages: if self.populate_only_packages and self.packages:
# Only add the package if we already have some whitelist. # Only add the package if we already have some whitelist.
self.packages.add(build_info['name']) self.packages.add(build_info['name'])