diff options
| author | Julian Andres Klode <jak@debian.org> | 2015-06-10 17:45:57 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2015-06-10 17:45:57 +0200 |
| commit | 7733ef642461daf7bd82aaeb7c9f9b184455b19d (patch) | |
| tree | 76555b74a8031efda76ec30d5d52c30a9c58ce93 | |
| parent | 7fff13ba3ee863bd84ed910523939069b966dbd7 (diff) | |
| download | python-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.py | 14 |
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 " |
