[Git][security-tracker-team/security-tracker][master] 2 commits: tracker_service: pass db to make_ref

Emilio Pozuelo Monfort (@pochu) pochu at debian.org
Tue Nov 17 13:18:04 GMT 2026



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


Commits:
c26924ed by Emilio Pozuelo Monfort at 2026-11-17T14:16:13+01:00
tracker_service: pass db to make_ref

It may be needed in subclasses now that db is not an object property.

- - - - -
e37c03d8 by Emilio Pozuelo Monfort at 2026-11-17T14:16:53+01:00
tracker_service: make_ref can return None

- - - - -


1 changed file:

- bin/tracker_service.py


Changes:

=====================================
bin/tracker_service.py
=====================================
@@ -397,7 +397,7 @@ data source.""")],
                 source_xref = (
         'Automatically generated temporary name.  Not for external reference.')
             else:
-                source_xref = self.make_ref(url, bug.name, source)
+                source_xref = self.make_ref(db, url, bug.name, source)
 
             if source_xref:
                 yield B("Source"), source_xref
@@ -1561,7 +1561,7 @@ Debian bug number.'''),
             title = pkg
         return A(self.url_source_package(url, pkg), title)
 
-    def make_ref(self, url: URLFactory, name: str, source: str) -> HTMLContent:
+    def make_ref(self, db: security_db.DB, url: URLFactory, name: str, source: str) -> HTMLContent | None:
         return None
 
     def make_red(self, contents: HTMLContent) -> Tag:



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/202bb7eee5f2c52c30b11a2d02eefb9afc67a1d8...e37c03d840b2579ebf510d50a79e01b8f5bb8425

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/202bb7eee5f2c52c30b11a2d02eefb9afc67a1d8...e37c03d840b2579ebf510d50a79e01b8f5bb8425
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


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


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