summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Hajdan, Jr <phajdan.jr@gentoo.org>2013-06-21 14:23:48 +0200
committerPawel Hajdan, Jr <phajdan.jr@gentoo.org>2013-06-21 14:23:48 +0200
commita92c88330af1aec3aa9ee58dc497f047129ccd2e (patch)
treeb9a5b41a1034714153286a7fe05b43669a4867b4
parentDo not put empty lines in the stabilization bug (diff)
downloadarch-tools-a92c88330af1aec3aa9ee58dc497f047129ccd2e.tar.gz
arch-tools-a92c88330af1aec3aa9ee58dc497f047129ccd2e.tar.bz2
arch-tools-a92c88330af1aec3aa9ee58dc497f047129ccd2e.zip
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)
-rwxr-xr-xfile-stabilization-bugs.py14
1 files 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