Fix how the CC list is being generated
The data structure having changed, the code needed to be adjusted as well. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
4ccfc9b5e6
commit
d3b7be42b4
1 changed files with 7 additions and 15 deletions
|
@ -218,21 +218,13 @@ class BugzillaProxy:
|
||||||
'''
|
'''
|
||||||
# Turn the cclist into something usable by bugzilla
|
# Turn the cclist into something usable by bugzilla
|
||||||
initialCCList = []
|
initialCCList = []
|
||||||
if cclist and 'people' in cclist:
|
for watcher in cclist:
|
||||||
for cc in cclist["people"]:
|
bz_email = self._get_bugzilla_email(watcher)
|
||||||
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"** {watcher} has no bugzilla_email or mailing_list set "
|
||||||
print(f"** {cc} has no bugzilla_email or mailing_list set "
|
f"({collection}/{package}) **")
|
||||||
f"({collection}/{package}) **")
|
|
||||||
if cclist and 'groups' in cclist:
|
|
||||||
for cc in cclist["groups"]:
|
|
||||||
bz_email = self._get_bugzilla_email(cc)
|
|
||||||
if bz_email:
|
|
||||||
initialCCList.append(bz_email)
|
|
||||||
else:
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue