aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2009-01-04 17:46:43 +0000
committerRobert Buchholz <rbu@gentoo.org>2009-01-04 17:46:43 +0000
commit9bdb839233f0ddd55eb09e932c0ff4ce39f49bb8 (patch)
treee7166e10c0cf409ea663785951428032ccb8bbc7 /bin
parentPHP Bugs (diff)
downloadsecurity-9bdb839233f0ddd55eb09e932c0ff4ce39f49bb8.tar.gz
security-9bdb839233f0ddd55eb09e932c0ff4ce39f49bb8.tar.bz2
security-9bdb839233f0ddd55eb09e932c0ff4ce39f49bb8.zip
* Add bug assigning code and integrate it into check-todo-issues
* Allow jumping back and forward in CVE list in interactive mode * Allow setting of whiteboard, try to guess severity from it svn path=/; revision=1011
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-todo-issues25
1 files changed, 23 insertions, 2 deletions
diff --git a/bin/check-todo-issues b/bin/check-todo-issues
index 94f22cc..338ac96 100755
--- a/bin/check-todo-issues
+++ b/bin/check-todo-issues
@@ -131,10 +131,14 @@ class EntryEditor:
def work_entries(self, entries):
- for entry in entries:
+ self.entrynum = 0
+ while self.entrynum >= 0 and self.entrynum < len(entries):
+ entry = entries[self.entrynum]
result = self.cvedb.print_all_about(entry)
if not result:
+ self.entrynum += 1
continue
+ print "CVE # in list: " + str(self.entrynum + 1) + " / " + str(len(entries))
cve = result[0]
product = filterstring(result[1])
@@ -147,6 +151,7 @@ class EntryEditor:
print
print ">>> ",
command = sys.stdin.readline()
+ self.entrynum += 1
print
if not self.recently_saved:
print "All entries done, attempting to quit, do you want to save? (Y/n) ",
@@ -249,6 +254,18 @@ class EntryEditor:
elif command[0] == 'u':
self.update_bugs()
+ elif command[0] == '<':
+ if len(command) > 2:
+ self.entrynum -= int(command[1]) + 1
+ else:
+ self.entrynum -= 1 + 1
+
+ elif command[0] == '>':
+ if len(command) > 2:
+ self.entrynum += int(command[1]) - 1
+ else:
+ self.entrynum += 1 - 1
+
else:
print
print "Available actions:"
@@ -336,12 +353,14 @@ class EntryEditor:
component = "Vulnerabilities"
else:
component = comp.strip()
+ print "Initial Whiteboard: ",
+ whiteboard = sys.stdin.readline()
print "Will file this bug [y/n]: ",
answer = sys.stdin.readline()
if answer[0] == "y" or answer[0] == "Y":
- bugno = self.bugreporter.post_bug(title, description, component)
+ bugno = self.bugreporter.post_bug(title, description, component, whiteboard)
if bugno:
print "Success! https://bugs.gentoo.org/%d" % (bugno)
# note the bug in the list
@@ -453,6 +472,8 @@ def miniusage():
* nSTRING Marks "NOT-FOR-US: STRING"
* #123 Marks "BUG: 123"
* u Invokes bug update mechanism immediately
+ * <[n] Jumps back one [or n] entries in the list
+ * >[n] Jumps forward one [or n] entries in the list
* Entering any other string displays this help
* CTRL+C Quits without saving