When an invalid account is found, inform about the package concerned

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-11-20 11:07:24 +01:00 committed by Nils Philippsen
parent d61e83a157
commit 011774ef46

View file

@ -225,14 +225,15 @@ class BugzillaProxy:
if bz_email: if bz_email:
initialCCList.append(bz_email) initialCCList.append(bz_email)
else: else:
print(f"** {cc} has no bugzilla_email or mailing_list set **") print(f"** {cc} has no bugzilla_email or mailing_list set "
f"({collection}/{package}) **")
if cclist and 'groups' in cclist: if cclist and 'groups' in cclist:
for cc in cclist["groups"]: for cc in cclist["groups"]:
bz_email = self._get_bugzilla_email(cc) bz_email = self._get_bugzilla_email(cc)
if bz_email: if bz_email:
initialCCList.append(bz_email) initialCCList.append(bz_email)
else: else:
print(f"** {cc} has no mailing-list set in FAS! **") print(f"** {cc} has no mailing-list set in FAS! ({collection}/{package}) **")
# Add owner to the cclist so comaintainers taking over a bug don't # Add owner to the cclist so comaintainers taking over a bug don't
# have to do this manually # have to do this manually