diff options
author | Holger Levsen <holger@debian.org> | 2015-02-26 15:49:43 +0000 |
---|---|---|
committer | Holger Levsen <holger@debian.org> | 2015-02-26 15:49:43 +0000 |
commit | ce8fe1270827774234663dd26e25cdf79f62d2e1 (patch) | |
tree | 5502bda7867410b17651b233654247a2872bf11a /lib | |
parent | 7b5a2e5dad487fcc8a28aa949d896b63cf807500 (diff) |
Dump data as .yaml via /tracker/data/yaml (Closes: #761859)
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@32509 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py index c2de1137d3..51262e495c 100644 --- a/lib/python/security_db.py +++ b/lib/python/security_db.py @@ -392,6 +392,14 @@ class DB: ORDER BY sp.name, urgency_to_number(urgency), st.bug_name""" % (name, nickname, nickname, nickname)) + cursor.execute( + """CREATE TEMPORARY VIEW debian_cve AS + SELECT DISTINCT debian_bugs.bug, st.bug_name + FROM package_notes, debian_bugs, source_package_status AS st + WHERE package_notes.bug_name = st.bug_name + AND debian_bugs.note = package_notes.id + ORDER BY debian_bugs.bug""") + def _initFunctions(self): """Registers user-defined SQLite functions.""" |