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
commit07b4d00cc7ddfce921ed800f6bba5c1d52bfb0cb (patch)
tree9ed7e7c96ce500bfef4f5f10dac96cdfceae1476 /lib
parent36b3e3768bc4e0c7215ad0fb72a12f54587d4767 (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