diff options
author | Robert Buchholz <rbu@gentoo.org> | 2008-06-12 15:20:41 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2008-06-12 15:20:41 +0000 |
commit | b51fc68a7c5a8d9b153c650e0383765c1d3d1289 (patch) | |
tree | 658d8e22828fbb4cb3a8c5104732cef86e8fc6a6 /bin | |
parent | NFUs (diff) | |
download | security-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-x | bin/target | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |