pkgset: Ignore deleted module builds

JIRA: COMPOSE-4058
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-01-14 16:23:55 +08:00
parent e7a58ccd07
commit 52f82ccc6e
3 changed files with 61 additions and 0 deletions

View file

@ -149,6 +149,12 @@ def get_koji_modules(compose, koji_wrapper, event, module_info_str):
except KeyError:
continue
if md['state'] == pungi.wrappers.kojiwrapper.KOJI_BUILD_DELETED:
compose.log_debug(
"Module build %s has been deleted, ignoring it." % build["name"]
)
continue
modules.append(md)
if not modules: