From 7dfa8aa1e9156b1916be6a818501b33d2e51770d Mon Sep 17 00:00:00 2001 From: Henri Rosten Date: Thu, 30 Nov 2023 16:18:07 +0200 Subject: [PATCH] Update repology client user-agent Signed-off-by: Henri Rosten --- src/repology/repology_cli.py | 2 +- src/repology/repology_cve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repology/repology_cli.py b/src/repology/repology_cli.py index 2d3676c..6c19760 100755 --- a/src/repology/repology_cli.py +++ b/src/repology/repology_cli.py @@ -136,7 +136,7 @@ def __init__(self): # - Cache all responses locally for 7200 seconds self.session = CachedLimiterSession(per_second=1, expire_after=7200) ua_product = "repology_cli/0" - ua_comment = "(https://github.com/tiiuae/sbomnix/tree/main/scripts/repology)" + ua_comment = "(https://github.com/tiiuae/sbomnix/)" self.headers = {"User-Agent": f"{ua_product} {ua_comment}"} def _packages_to_df(self, args, re_pkg_internal=None): diff --git a/src/repology/repology_cve.py b/src/repology/repology_cve.py index 194f6e5..6097321 100755 --- a/src/repology/repology_cve.py +++ b/src/repology/repology_cve.py @@ -190,7 +190,7 @@ def query_cve(pkg_name, pkg_version): """ session = CachedLimiterSession(per_second=1, expire_after=7200) ua_product = "repology_cli/0" - ua_comment = "(https://github.com/tiiuae/sbomnix/tree/main/scripts/repology)" + ua_comment = "(https://github.com/tiiuae/sbomnix/)" headers = {"User-Agent": f"{ua_product} {ua_comment}"} pkg = urllib.parse.quote(pkg_name) ver = urllib.parse.quote(pkg_version)