[Git][security-tracker-team/security-tracker][master] 2 commits: Fix references to DLA regression updates on website
Salvatore Bonaccorso
carnil at debian.org
Wed Dec 4 07:42:59 GMT 2019
Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker
Commits:
a6655a89 by Brian May at 2019-12-04T06:26:00Z
Fix references to DLA regression updates on website
The first revision on the website doesn't have a postfix.
The second revision has a postfix of -2.
I was going to do something similar for DSA too, but found regression update
advisories are not available on the website for DSAs.
- - - - -
80f9e779 by Salvatore Bonaccorso at 2019-12-04T07:42:40Z
Merge branch 'bam/security-tracker-fix_dla_references'
- - - - -
1 changed file:
- bin/tracker_service.py
Changes:
=====================================
bin/tracker_service.py
=====================================
@@ -1570,16 +1570,20 @@ Debian bug number.'''),
% (int(y), int(number)))
return None
- def url_dla(self, url, dla, re_dla=re.compile(r'^DLA-(\d+)(?:-\d+)?$')):
+ 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()
# We must determine the year because there is no generic URL.
- (number,) = match.groups()
for (date,) in self.db.cursor().execute(
"SELECT release_date FROM bugs WHERE name = ?", (dla,)):
(y, m, d) = date.split('-')
- return url.absolute("https://www.debian.org/lts/security/%d/dla-%d"
- % (int(y), int(number)))
+ return url.absolute("https://www.debian.org/lts/security/%d/%s"
+ % (int(y), link))
return None
def url_debian_bug(self, url, debian):
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/5e79d2c2c5f77358b41b6bdbc14b00e6b5cd55a3...80f9e7791d381f6cd4df05828e8036fc9f7e6af8
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/5e79d2c2c5f77358b41b6bdbc14b00e6b5cd55a3...80f9e7791d381f6cd4df05828e8036fc9f7e6af8
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/20191204/c3a29011/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list