aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2008-06-12 15:20:41 +0000
committerRobert Buchholz <rbu@gentoo.org>2008-06-12 15:20:41 +0000
commitb51fc68a7c5a8d9b153c650e0383765c1d3d1289 (patch)
tree658d8e22828fbb4cb3a8c5104732cef86e8fc6a6 /bin
parentNFUs (diff)
downloadsecurity-b51fc68a7c5a8d9b153c650e0383765c1d3d1289.tar.gz
security-b51fc68a7c5a8d9b153c650e0383765c1d3d1289.tar.bz2
security-b51fc68a7c5a8d9b153c650e0383765c1d3d1289.zip
Have target not bail out on empty whiteboard,
and also translate stable? -> stable svn path=/; revision=569
Diffstat (limited to 'bin')
-rwxr-xr-xbin/target9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/target b/bin/target
index 5a8552a..7b1e3e1 100755
--- a/bin/target
+++ b/bin/target
@@ -105,8 +105,13 @@ def cc_arches_to(bugno, username, message, cc_add):
password = None,
forget = False)
bug_xml = bz.get(bugno)
- whiteboard = bug_xml.find('//status_whiteboard').text
- new_whiteboard = re.sub("(ebuild|upstream)", "stable", whiteboard)
+ whiteboard = bug_xml.find('//status_whiteboard')
+ if whiteboard:
+ whiteboard = whiteboard.text
+ new_whiteboard = re.sub("(ebuild|upstream|stable\?)", "stable", whiteboard)
+ else:
+ whiteboard = "(empty)"
+ new_whiteboard = "?? [stable]"
if (whiteboard == new_whiteboard):
print "Not changing whiteboard: %s" % (whiteboard)