[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781270: python3-apt: Exception gives Ubuntu-related link on Debian



On 2015-06-10 17:48, Julian Andres Klode wrote:
> Thanks for your bug report. I fixed this in git with the
> following commit:

Thanks! I added a link to the Debian package tracker to it:

diff --git a/apt/package.py b/apt/package.py
index 641b1a4..47dc0e9 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1069,10 +1069,17 @@ class Package(object):
                 self._changelog = changelog
 
             except HTTPError:
-                if self.candidate.origins[0].origin == "Ubuntu":
+                if self.candidate.origins[0].origin == "Debian":
                     res = _("The list of changes is not available yet.\n\n"
                             "Please use "
-                            "http://launchpad.net/ubuntu/+source/%s/";
+                            "https://tracker.debian.org/media/packages/";
+                            "%s/%s/changelog-%s\n"
+                            "until the changes become available or try again "
+                            "later.") % (prefix, src_pkg, src_ver)
+                elif self.candidate.origins[0].origin == "Ubuntu":
+                    res = _("The list of changes is not available yet.\n\n"
+                            "Please use "
+                            "https://launchpad.net/ubuntu/+source/%s/";
                             "%s/+changelog\n"
                             "until the changes become available or try again "
                             "later.") % (src_pkg, src_ver)

I changed also the launchpad address to HTTPS.
Would you apply the patch? MTIA!


Reply to: