[Secure-testing-commits] r15863 - lib/python

Florian Weimer fw at alioth.debian.org
Fri Jan 14 21:48:52 UTC 2011


Author: fw
Date: 2011-01-14 21:48:52 +0000 (Fri, 14 Jan 2011)
New Revision: 15863

Modified:
   lib/python/security_db.py
Log:
lib/python/security_db.py: pass all TEMP bug names to debsecan

They are somewhat stable now, and therefore actually useful.


Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py	2011-01-14 21:48:18 UTC (rev 15862)
+++ lib/python/security_db.py	2011-01-14 21:48:52 UTC (rev 15863)
@@ -1249,8 +1249,6 @@
         else:
             release = 'sid'
 
-        c.execute("""DELETE FROM vulnlist WHERE name LIKE 'TEMP-0000000-%'""")
-
         urgency_to_flag = {'low' : 'L', 'medium' : 'M', 'high' : 'H',
                            'not yet assigned' : ' '}
 
@@ -1347,7 +1345,6 @@
                  WHERE cve_name = p.bug_name)
                 FROM package_notes AS p, bugs AS b
                 WHERE (p.bug_name LIKE 'CVE-%' OR p.bug_name LIKE 'TEMP-%')
-                AND p.bug_name NOT LIKE 'TEMP-0000000-%'
                 AND p.urgency <> 'unimportant'
                 AND COALESCE(p.fixed_version, '') <> '0'
                 AND p.package_kind IN ('source', 'binary', 'unknown')
@@ -1360,16 +1357,7 @@
                 else:
                     remote = ' '
 
-                # Normalize FAKE-* names a bit.  The line number (which
-                # makes the name unique) is completely useless for the
-                # client.
-
-                if bug[0:5] == 'TEMP-':
-                    name = '-'.join(bug.split('-')[0:2])
-                else:
-                    name = bug
-
-                result_start.append("%s,,%s" % (name, desc))
+                result_start.append("%s,,%s" % (bug, desc))
                 bug_to_index[bug] = index
                 bug_to_remote_flag[bug] = remote
                 index += 1
@@ -1386,7 +1374,6 @@
                 """SELECT DISTINCT bug_name, package
                 FROM package_notes
                 WHERE (bug_name LIKE 'CVE-%' OR bug_name LIKE 'TEMP-%')
-                AND bug_name NOT LIKE 'TEMP-0000000-%'
                 AND package_kind IN ('source', 'binary', 'unknown')
                 GROUP BY package, bug_name
                 ORDER BY package, bug_name""")):




More information about the Secure-testing-commits mailing list