aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2009-01-20 18:38:24 +0000
committerRobert Buchholz <rbu@gentoo.org>2009-01-20 18:38:24 +0000
commitc4c98af4601ddf9f75555dbbff98582916ea4fbf (patch)
tree2415847cc06b24f6369f7990599ad79dd1376962 /bin
parentMITRE sync (diff)
downloadsecurity-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-xbin/target10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/target b/bin/target
index 2ce0af6..80510ad 100755
--- a/bin/target
+++ b/bin/target
@@ -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"