summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2005-10-24 14:43:04 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2005-10-24 14:43:04 +0000
commit8b530d45327bcee294254a412b0348779e737ce1 (patch)
treec720b581cf1e1a38105706bbf07d8614cba063ba /lib
parent99c6ce57d6958e445240050d5d20d16d90197ba8 (diff)
Add a summary page for tracked bugs without a CVE name.
lib/python/security_db.py (DB.getFakeBugs): New method. bin/tracker_service.py (TrackerService.page_data_fake_names): New method. (TrackerService.__intit__, TrackerService.page_home): Use it. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2554 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 036624e75b..4be0974173 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1478,6 +1478,17 @@ class DB:
if old_package:
yield (old_package, bugs)
+ def getFakeBugs(self, cursor=None):
+ """Returns a list of pairs (BUG-NAME, DESCRIPTION)."""
+
+ if cursor is None:
+ cursor = self.cursor()
+
+ return list(cursor.execute(
+ """SELECT name, description FROM bugs
+ WHERE name > 'FAKE-' AND name LIKE 'FAKE-%'
+ ORDER BY name"""))
+
def getITPs(self, cursor):
"""Returns a generator for a list of unknown packages.
Each entry has the form (PACKAGE, BUG-LIST, DEBIAN-BUG-LIST)."""

© 2014-2024 Faster IT GmbH | imprint | privacy policy