diff options
author | Robert Buchholz <rbu@gentoo.org> | 2009-01-20 18:38:24 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2009-01-20 18:38:24 +0000 |
commit | c4c98af4601ddf9f75555dbbff98582916ea4fbf (patch) | |
tree | 2415847cc06b24f6369f7990599ad79dd1376962 /bin | |
parent | MITRE sync (diff) | |
download | security-c4c98af4601ddf9f75555dbbff98582916ea4fbf.tar.gz security-c4c98af4601ddf9f75555dbbff98582916ea4fbf.tar.bz2 security-c4c98af4601ddf9f75555dbbff98582916ea4fbf.zip |
target: add STABLEREQ to bugs when cc'ing arches, correctly handle ebuild+ / upstream+
svn path=/; revision=1033
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/target | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -114,7 +114,7 @@ def cc_arches_to(bugno, username, message, cc_add, auth): whiteboard = bug_xml.find('//status_whiteboard') if not whiteboard is None: whiteboard = whiteboard.text - new_whiteboard = re.sub("(ebuild|upstream|stable)\??", "stable", whiteboard) + new_whiteboard = re.sub("(ebuild\+?|upstream\+?|stable)\??", "stable", whiteboard) new_whiteboard = re.sub("stable/stable", "stable", new_whiteboard) else: whiteboard = "(empty)" @@ -125,12 +125,18 @@ def cc_arches_to(bugno, username, message, cc_add, auth): else: print 'Setting whiteboard "%s" to "%s"' % (whiteboard, new_whiteboard) + keywords = bug_xml.find('//keywords') + if not keywords is None: + keywords = "%s %s" % (keywords.text, "STABLEREQ") + else: + keywords = "STABLEREQ" + print "Go ahead? [y/n]: ", answer = sys.stdin.readline() if answer[0] == "y" or answer[0] == "Y": print "Modifying bug https://bugs.gentoo.org/%s ..." % (bugno), - if bz.modify(bugno, comment = message, add_cc = cc_add, whiteboard = new_whiteboard): + if bz.modify(bugno, comment = message, add_cc = cc_add, whiteboard = new_whiteboard, keywords = keywords): print "successful" else: print "error" |