aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2008-06-16 21:50:49 +0000
committerRobert Buchholz <rbu@gentoo.org>2008-06-16 21:50:49 +0000
commit0bd024b6bb9f4c05f8f72df3502ed4ee92f8e80c (patch)
tree5ff269509d247bc6ffb70ff6cb3ccb941401abb5 /bin
parentBug references, NFUs (diff)
downloadsecurity-0bd024b6bb9f4c05f8f72df3502ed4ee92f8e80c.tar.gz
security-0bd024b6bb9f4c05f8f72df3502ed4ee92f8e80c.tar.bz2
security-0bd024b6bb9f4c05f8f72df3502ed4ee92f8e80c.zip
Sanitize whiteboard parsing, the non-empty case
would be recognized wrong. svn path=/; revision=573
Diffstat (limited to 'bin')
-rwxr-xr-xbin/target5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/target b/bin/target
index 7b1e3e1..5c7d125 100755
--- a/bin/target
+++ b/bin/target
@@ -105,8 +105,11 @@ def cc_arches_to(bugno, username, message, cc_add):
password = None,
forget = False)
bug_xml = bz.get(bugno)
+ if not bug_xml:
+ print "Could not find bug %s" % (bugno)
+ return
whiteboard = bug_xml.find('//status_whiteboard')
- if whiteboard:
+ if not whiteboard is None:
whiteboard = whiteboard.text
new_whiteboard = re.sub("(ebuild|upstream|stable\?)", "stable", whiteboard)
else: