summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-03-18 12:26:45 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-03-18 12:26:45 +0100
commit88a7de1a19ee906e16d2354cc057adb6241aecc6 (patch)
tree65085b117a309774988b5e8c9f3c212f79d9d14a /lib
parente74fe3b4c8bc15375fc8f49516073c6264b62f46 (diff)
security_db: don't return duplicated advisories
This is used to build the advisory table in package views, and it makes no sense to list some advisories (e.g. DSAs that fixed both stable and oldstable) twice.
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index fd90ab8b21..2c5a3ba58a 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1872,7 +1872,7 @@ class DB:
def getDSAsForSourcePackage(self, cursor, package):
bugs_like = self.genDBAdvisoryString("bugs.name", dtsa=False)
for row in cursor.execute(
- """SELECT bugs.name, bugs.description
+ """SELECT DISTINCT bugs.name, bugs.description
FROM bugs, package_notes as p
WHERE p.bug_name = bugs.name
AND ( """ + bugs_like + """ )

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