summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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