[Git][security-tracker-team/security-tracker][master] tracker_service: sort releases in CVE pages

Emilio Pozuelo Monfort (@pochu) pochu at debian.org
Thu Nov 25 09:31:43 GMT 2021



Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker


Commits:
8795311f by Emilio Pozuelo Monfort at 2021-11-25T10:24:06+01:00
tracker_service: sort releases in CVE pages

- - - - -


1 changed file:

- bin/tracker_service.py


Changes:

=====================================
bin/tracker_service.py
=====================================
@@ -458,7 +458,7 @@ data source.""")],
 
             def gen_source():
                 old_pkg = ''
-                for (package, release, version, vulnerable) \
+                for (package, releases, version, vulnerable) \
                         in self.db.getSourcePackages(cursor, bug.name):
                     if package == old_pkg:
                         package = ''
@@ -476,7 +476,8 @@ data source.""")],
                     else:
                         vuln = 'fixed'
 
-                    yield package, ', '.join(release), version, vuln
+                    releases = sorted(releases, key = debian_support.internRelease)
+                    yield package, ', '.join(releases), version, vuln
 
             page.append(make_table(gen_source(),
                 title=H2('Vulnerable and fixed packages'),



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/8795311fe744f6669fdf3da1ae281615aa97450a

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/8795311fe744f6669fdf3da1ae281615aa97450a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20211125/d04b5581/attachment-0001.htm>


More information about the debian-security-tracker-commits mailing list