summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-10 17:45:57 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-10 17:45:57 +0200
commit7733ef642461daf7bd82aaeb7c9f9b184455b19d (patch)
tree76555b74a8031efda76ec30d5d52c30a9c58ce93
parent7fff13ba3ee863bd84ed910523939069b966dbd7 (diff)
downloadpython-apt-7733ef642461daf7bd82aaeb7c9f9b184455b19d.tar.gz
apt.package: Only reference Launchpad for missing changelogs on Ubuntu
The new message is not really helpful, but hey, who cares. Closes: #781270
-rw-r--r--apt/package.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/apt/package.py b/apt/package.py
index 8561d3c4..069b21dd 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1060,11 +1060,15 @@ class Package(object):
self._changelog = changelog
except HTTPError:
- res = _("The list of changes is not available yet.\n\n"
- "Please use http://launchpad.net/ubuntu/+source/%s/"
- "%s/+changelog\n"
- "until the changes become available or try again "
- "later.") % (src_pkg, src_ver)
+ if self.candidate.origins[0].origin == "Ubuntu":
+ res = _("The list of changes is not available yet.\n\n"
+ "Please use "
+ "http://launchpad.net/ubuntu/+source/%s/"
+ "%s/+changelog\n"
+ "until the changes become available or try again "
+ "later.") % (src_pkg, src_ver)
+ else:
+ res = _("The list of changes is not available")
return res if isinstance(res, unicode) else res.decode("utf-8")
except (IOError, BadStatusLine):
res = _("Failed to download the list of changes. \nPlease "