[Bug 2068809] [NEW] changelogs not listed for PPA packages

Tormod Volden 2068809 at bugs.launchpad.net
Sat Jun 8 18:35:01 UTC 2024


Public bug reported:

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/MyCache.py it checks only for ppa.launchpad.net but nowadays the URI will contain ppa.launchpadcontent.net instead.


With the below patch it will correctly display the changelogs:

--- /usr/lib/python3/dist-packages/UpdateManager/Core/MyCache.py.orig	2024-04-16 11:56:33.000000000 +0200
+++ /usr/lib/python3/dist-packages/UpdateManager/Core/MyCache.py	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 != "ppa.launchpad.net":
+            if urlsplit(uri).hostname not in ("ppa.launchpad.net", "ppa.launchpadcontent.net"):
                 continue
             match = re.search("http.*/(.*)/(.*)/ubuntu/.*", uri)
             if match is not None:

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2068809

Title:
  changelogs not listed for PPA packages

Status in update-manager package in Ubuntu:
  New

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/MyCache.py it checks only for ppa.launchpad.net but nowadays the URI will contain ppa.launchpadcontent.net instead.

  
  With the below patch it will correctly display the changelogs:

  --- /usr/lib/python3/dist-packages/UpdateManager/Core/MyCache.py.orig	2024-04-16 11:56:33.000000000 +0200
  +++ /usr/lib/python3/dist-packages/UpdateManager/Core/MyCache.py	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 != "ppa.launchpad.net":
  +            if urlsplit(uri).hostname not in ("ppa.launchpad.net", "ppa.launchpadcontent.net"):
                   continue
               match = re.search("http.*/(.*)/(.*)/ubuntu/.*", uri)
               if match is not None:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2068809/+subscriptions




More information about the foundations-bugs mailing list