aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2007-11-18 17:21:58 +0000
committerRobert Buchholz <rbu@gentoo.org>2007-11-18 17:21:58 +0000
commit357a28752aebf7762e27ef447bdb8d7f69d41984 (patch)
treeb66601376e6f708685c1a15061a7fd6b4bf793ef /bin
parentBUG references (diff)
downloadsecurity-357a28752aebf7762e27ef447bdb8d7f69d41984.tar.gz
security-357a28752aebf7762e27ef447bdb8d7f69d41984.tar.bz2
security-357a28752aebf7762e27ef447bdb8d7f69d41984.zip
Allow #123 as command for BUG: 123
svn path=/; revision=124
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-todo-issues9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/check-todo-issues b/bin/check-todo-issues
index ce81166..2930c0d 100755
--- a/bin/check-todo-issues
+++ b/bin/check-todo-issues
@@ -171,6 +171,10 @@ class EntryEditor:
notforus = command[1:]
self.update_entry_todo(entry, "\tNOT-FOR-US: %s" % (notforus.strip()))
+ elif command[0] == '#':
+ bugno = command[1:]
+ self.update_entry_todo(entry, "\tBUG: %s" % (bugno.strip()))
+
else:
print
print "Available actions:"
@@ -388,9 +392,9 @@ class CVEData:
if (self.cvedata[cve]['product_name']):
productname = self.cvedata[cve]['product_name']
print "Product: %s" % (productname)
- if productname.find(query) > -1:
+ if productname.lower().find(query.lower()) > -1:
# productname already contains vendor (or vendor is empty)
- query = productname
+ query = "%s" % (productname)
else:
query += " %s" % (productname)
if not query:
@@ -522,6 +526,7 @@ def miniusage():
* d Redisplays the last search completely
* n Marks "NOT-FOR-US: NAME" while NAME is the last product (from p or guess)
* nSTRING Marks "NOT-FOR-US: STRING"
+ * #123 Marks "BUG: 123"
* Entering any other string displays this help
* CTRL+C Quits without saving