Set the pkg owner to releng until they are added to koji

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2021-05-25 15:53:51 -04:00
parent ec779e9721
commit eb8e5ecc85

View file

@ -369,6 +369,11 @@ def set_koji_ownership(tag, namespace, packages, arches, verbose=False):
for pkg in packages:
owner = get_pagure_project_owner(namespace, pkg, verbose=verbose)
# When the user is created in fedora infra, they wont be added to koji
# until they logged into koji for the first time
# Set the owner to 'releng' until they logged into koji
if not session.getUser(owner):
owner = 'releng'
if pkg not in koji_pkgs:
extra_arches = None
if pkg in EXTRA_ARCH_LIST: