diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index f8423ba..2d627fc 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -257,18 +257,18 @@ class BugzillaProxy: e.args = ('ProtocolError', e.errcode, e.errmsg) raise + # Set the qacontact_email and name + if qacontact: + qacontact_email = self._get_bugzilla_email(qacontact) + else: + qacontact_email = 'extras-qa@fedoraproject.org' + qacontact = '' + pkg_key = package.lower() if pkg_key in product: # edit the package information data = {} - # Grab bugzilla email for things changable via xmlrpc - if qacontact: - qacontact_email = self._get_bugzilla_email(qacontact) - else: - qacontact_email = 'extras-qa@fedoraproject.org' - qacontact = f'' - # Check for changes to the owner, qacontact, or description if product[pkg_key]['initialowner'] != owner_email: data['initialowner'] = owner_email @@ -348,12 +348,6 @@ class BugzillaProxy: raise else: # Add component - if qacontact: - qacontact_email = self._get_bugzilla_email(qacontact) - else: - qacontact_email = 'extras-qa@fedoraproject.org' - qacontact = f'' - data = { 'product': self.config['products'][collection], 'component': package,