changelogs not listed for PPA packages

Bug #2068809 reported by Tormod Volden
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)

Bug Description

When clicking on a package from a PPA in update-manager, the "Changes for XXX versions:" section will say:

"This update does not come from a source that supports changelogs."

and on the console it dumps:

ERROR:root:Unable to find a valid PPA candidate URL.

The reason is that in _extract_ppa_changelog_uri() in /usr/lib/python3/dist-packages/UpdateManager/Core/ it checks only for but nowadays the URI will contain instead.

With the below patch it will correctly display the changelogs:

--- /usr/lib/python3/dist-packages/UpdateManager/Core/ 2024-04-16 11:56:33.000000000 +0200
+++ /usr/lib/python3/dist-packages/UpdateManager/Core/ 2024-06-08 20:33:51.462435498 +0200
@@ -338,7 +338,7 @@ class MyCache(DistUpgrade.DistUpgradeCac

         cdt = self[name].candidate
         for uri in cdt.uris:
- if urlsplit(uri).hostname != "":
+ if urlsplit(uri).hostname not in ("", ""):
             match ="http.*/(.*)/(.*)/ubuntu/.*", uri)
             if match is not None:

Tags: patch

Related branches

Revision history for this message
Tormod Volden (tormodvolden) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.