summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2011-01-14 21:48:52 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2011-01-14 21:48:52 +0000
commit8071a2312bc4d36aac3592b0d5953487363b2d2e (patch)
tree5649dfdbfbf6f8f8a94fefc8a7bb7e9fc17f85e8 /lib
parent679c3e0fcdfc8fa8551eccaa9a82f5614a7c2dfa (diff)
lib/python/security_db.py: pass all TEMP bug names to debsecan
They are somewhat stable now, and therefore actually useful. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@15863 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 7720a2d0f3..030fd77872 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1249,8 +1249,6 @@ class DB:
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 @@ class DB:
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 @@ class DB:
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 @@ class DB:
"""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""")):

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