From b5aba9096e371a5f8612aff05384aca54ccc5acd Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 11 Feb 2016 21:07:56 +0100 Subject: use local changelog from /usr/share/doc if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If pkgAcqChangelog is told to acquire the changelog for a version it will check first if this version is installed on the disk and if so will use the local changelog in /usr/share/doc (possibily/likely gz compressed) instead of downloading the file from the web. An option is provided to disable this, which is enabled by default for the Ubuntu vendor as they truncate the local changelogs – and for apts --print-uris action. --- apt-private/private-download.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-private') diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 6f672635f..89d0a50c7 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -246,6 +246,8 @@ bool DoChangelog(CommandLine &CmdL) bool const downOnly = _config->FindB("APT::Get::Download-Only", false); bool const printOnly = _config->FindB("APT::Get::Print-URIs", false); + if (printOnly) + _config->CndSet("Acquire::Changelogs::AlwaysOnline", true); aptAcquireWithTextStatus Fetcher; for (APT::VersionList::const_iterator Ver = verset.begin(); -- cgit v1.2.3