From 1fd80dc7b30314ccacb8e8f94370c6f37bcf01dc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 05 2014 11:19:29 +0000 Subject: Do no re-assign the bug if it is already assigned to the new point of contact --- diff --git a/pkgdb2/lib/utils.py b/pkgdb2/lib/utils.py index 4edb966..f8c3be8 100644 --- a/pkgdb2/lib/utils.py +++ b/pkgdb2/lib/utils.py @@ -169,7 +169,8 @@ def set_bugzilla_owner( query_results = get_bz().query(bz_query) for bug in query_results: - if not prev_poc_email or bug.assigned_to == prev_poc_email: + if (not prev_poc_email or bug.assigned_to == prev_mail) \ + and bug.assigned_to != bz_mail: if pkgdb2.APP.config[ 'PKGDB2_BUGZILLA_NOTIFICATION']: # pragma: no cover bug.setassignee(assigned_to=bz_mail, comment=bz_comment)