From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 46DFC1381F3 for ; Sat, 22 Jun 2013 14:57:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4C8EE0A9F; Sat, 22 Jun 2013 14:57:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 59D05E0A9F for ; Sat, 22 Jun 2013 14:57:53 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7545F33DEE1 for ; Sat, 22 Jun 2013 14:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1F245E468F for ; Sat, 22 Jun 2013 14:57:51 +0000 (UTC) From: "Paweł Hajdan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paweł Hajdan" Message-ID: <1371817428.a92c88330af1aec3aa9ee58dc497f047129ccd2e.phajdan.jr@gentoo> Subject: [gentoo-commits] proj/arch-tools:master commit in: / X-VCS-Repository: proj/arch-tools X-VCS-Files: file-stabilization-bugs.py X-VCS-Directories: / X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: Paweł Hajdan X-VCS-Revision: a92c88330af1aec3aa9ee58dc497f047129ccd2e X-VCS-Branch: master Date: Sat, 22 Jun 2013 14:57:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7132ac7f-e179-46aa-ac31-c045be1696c9 X-Archives-Hash: 3a9d808f1ee54e445ede383874ba6e22 commit: a92c88330af1aec3aa9ee58dc497f047129ccd2e Author: Pawel Hajdan, Jr gentoo org> AuthorDate: Fri Jun 21 12:23:48 2013 +0000 Commit: Paweł Hajdan gentoo org> CommitDate: Fri Jun 21 12:23:48 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/arch-tools.git;a=commit;h=a92c8833 Apply feedback from gentoo-dev: - put package name and version first in the summary (for better sorting of bugs by summary) - add STABLEREQ keyword at the time of filing the bug (this needs to be done after creating the bug, limitation of the Bugzilla API) --- file-stabilization-bugs.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/file-stabilization-bugs.py b/file-stabilization-bugs.py index 6f1bb64..40bf784 100755 --- a/file-stabilization-bugs.py +++ b/file-stabilization-bugs.py @@ -74,14 +74,13 @@ if __name__ == "__main__": description = ('Is it OK to stabilize =%s ?\n' % cpv + 'If so, please CC all arches which have stable keywords\n' + - 'for older versions of this package and add STABLEREQ keyword\n' + - 'to the bug.') + 'for older versions of this package.') url = 'http://packages.gentoo.org/package/%s?arches=linux' % urllib.quote(cp) params = {} params['product'] = 'Gentoo Linux' params['version'] = 'unspecified' params['component'] = 'Keywording and Stabilization' - params['summary'] = 'Please stabilize =%s' % cpv + params['summary'] = '%s: stabilization request' % cpv params['description'] = description params['url'] = url params['assigned_to'] = maintainer @@ -92,6 +91,15 @@ if __name__ == "__main__": print 'Submitted bug #%d for %s. ;-)' % (bug_id, cpv) done_cpvs += cpv save_state(done_cpvs) + try: + params = {} + params['ids'] = [bug_id] + params['keywords'] = {'set': 'STABLEREQ'} + bugzilla.Bug.update(params) + except xmlrpclib.Fault, f: + exit_code = 1 + print f + print 'Failed to add STABLEREQ keyword for %s. :-/' % cpv except xmlrpclib.Fault, f: exit_code = 1 print f