From 20e90c972cd3458fab19598245c0d47938f04427 Mon Sep 17 00:00:00 2001 From: Amadeus Date: Mon, 16 Nov 2026 15:31:16 -0300 Subject: [PATCH] apt_changelog.py: Fix the PPA source package URL The Launchpad PPA pool URL was a plain string containing an f-string placeholder, so it was built with a literal '{self.source_prefix()}' segment and the .dsc lookup always failed, falling back to the last change only. Use source_prefix() like get_apt_changelog_uri() does. --- usr/lib/python3/dist-packages/mintcommon/apt_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/python3/dist-packages/mintcommon/apt_changelog.py b/usr/lib/python3/dist-packages/mintcommon/apt_changelog.py index 2152c28..9712419 100755 --- a/usr/lib/python3/dist-packages/mintcommon/apt_changelog.py +++ b/usr/lib/python3/dist-packages/mintcommon/apt_changelog.py @@ -199,7 +199,7 @@ def get_changelog(self, pkg_name:str, no_local:bool=False): elif origin == 'LP-PPA': ppa_url, ppa_owner, ppa_name, _ = \ self.candidate.uri.split("://")[1].split("/", 3) - base_uri = "https://ppa.launchpadcontent.net/%s/%s/ubuntu/pool/main/{self.source_prefix()}/%s" % (ppa_owner, ppa_name, self.candidate.source_name) + base_uri = "https://ppa.launchpadcontent.net/%s/%s/ubuntu/pool/main/%s/%s" % (ppa_owner, ppa_name, self.source_prefix(), self.candidate.source_name) r, uri = self.get_changelog_uri(base_uri) if not r: # fall back to last change info only