Changed the filters so they execute when everything is build

Signed-off-by: Martin Curlej <mcurlej@redhat.com>
This commit is contained in:
Martin Curlej
2017-10-30 19:37:23 +01:00
committed by mprahl
parent c7e6fff1d8
commit 1eb3c653dd
4 changed files with 187 additions and 4 deletions

View File

@@ -178,10 +178,11 @@ class MockModuleBuilder(GenericBuilder):
if not rpm.endswith(".rpm"):
continue
# If RPM is filtered-out, do not add it to artifacts list.
nvr = kobo.rpmlib.parse_nvr(rpm)
if nvr["name"] in m1_mmd.filter.rpms:
continue
if m1.last_batch_id() == m1.batch:
# If RPM is filtered-out, do not add it to artifacts list.
nvr = kobo.rpmlib.parse_nvr(rpm)
if nvr["name"] in m1_mmd.filter.rpms:
continue
pkglist_f.write(rpm + '\n')
rpm = rpm[:-len(".rpm")]