Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits: 2c8b8d96 by Emilio Pozuelo Monfort at 2024-05-28T13:08:14+02:00 tracker_service: use revision also for -1 links The debian.org pages now provide links for -1, so we don't need to special-case those. - - - - - e4eac9e5 by Emilio Pozuelo Monfort at 2024-05-28T13:08:14+02:00 tracker_service: don't parse the DSA name We don't need to, as we just use the full DSA name. - - - - - 1 changed file: - bin/tracker_service.py Changes: ===================================== bin/tracker_service.py ===================================== @@ -3,7 +3,6 @@ import email.utils import json import os.path -import re import sys import time @@ -1548,28 +1547,13 @@ Debian bug number.'''), def url_web_search_bug(self, url, name): return url.absolute("https://duckduckgo.com/html", q='"%s"' % name) - def url_dsa(self, url, dsa, re_dsa=re.compile(r'^DSA-(\d+)(-\d+)?$')): - match = re_dsa.match(dsa) - if match: - (number,revision) = match.groups() - if revision == "-1": - link = "dsa-%d" % int(number) - else: - link = dsa.lower() - return url.absolute("https://www.debian.org/security/%s" % link) - return None - - def url_dla(self, url, dla, re_dla=re.compile(r'^DLA-(\d+)(-\d+)?$')): - match = re_dla.match(dla) - if match: - (number,revision) = match.groups() - if revision == "-1": - link = "dla-%d" % int(number) - else: - link = dla.lower() - return url.absolute("https://www.debian.org/lts/security/%s" - % link) - return None + def url_dsa(self, url, dsa): + link = dsa.lower() + return url.absolute("https://www.debian.org/security/%s" % link) + + def url_dla(self, url, dla): + link = dla.lower() + return url.absolute("https://www.debian.org/lts/security/%s" % link) def url_debian_bug(self, url, debian): return url.absolute("https://bugs.debian.org/cgi-bin/bugreport.cgi", View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/be537af61e138068be52aa7b0bb2d0622e47ddc4...e4eac9e567d5764e42152230ee8d038e383c6103 -- This project does not include diff previews in email notifications. View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/be537af61e138068be52aa7b0bb2d0622e47ddc4...e4eac9e567d5764e42152230ee8d038e383c6103 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-security-tracker-commits mailing list debian-security-tracker-commits@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits