mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
ack-sync: Use @ubuntu.com e-mail address for Ubuntu Members
This commit is contained in:
parent
50ff107d7f
commit
72e0377045
7
ack-sync
7
ack-sync
@ -166,12 +166,15 @@ def main(bug_numbers, all_package, all_version, all_section, update,
|
|||||||
|
|
||||||
for bug_number in bug_numbers:
|
for bug_number in bug_numbers:
|
||||||
bug = launchpad.bugs[bug_number]
|
bug = launchpad.bugs[bug_number]
|
||||||
uploader_name = bug.owner.display_name
|
uploader = bug.owner
|
||||||
|
uploader_name = uploader.display_name
|
||||||
if all_uploader_email is not None:
|
if all_uploader_email is not None:
|
||||||
uploader_email = all_uploader_email
|
uploader_email = all_uploader_email
|
||||||
|
elif launchpad.people['ubuntumembers'] in uploader.super_teams:
|
||||||
|
uploader_email = uploader.name + '@ubuntu.com'
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
uploader_email = bug.owner.preferred_email_address.email
|
uploader_email = uploader.preferred_email_address.email
|
||||||
except ValueError:
|
except ValueError:
|
||||||
uploader_email = get_email_from_file(uploader_name)
|
uploader_email = get_email_from_file(uploader_name)
|
||||||
if uploader_email is None:
|
if uploader_email is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user