summaryrefslogtreecommitdiff
path: root/apt-pkg/init.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-02-11 21:07:56 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2016-02-11 21:07:56 +0100
commitb5aba9096e371a5f8612aff05384aca54ccc5acd (patch)
treee38b65b43b2ca80f460a69686f7eef36dffda218 /apt-pkg/init.cc
parent29f80b30c7c5a0da8544ebde6e7eb54c41171360 (diff)
use local changelog from /usr/share/doc if possible
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.
Diffstat (limited to 'apt-pkg/init.cc')
-rw-r--r--apt-pkg/init.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index c35477bf6..0dfb10978 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -120,6 +120,7 @@ bool pkgInitConfig(Configuration &Cnf)
Cnf.CndSet("Acquire::Changelogs::URI::Origin::Tanglu", "http://metadata.tanglu.org/changelogs/@CHANGEPATH@_changelog");
Cnf.CndSet("Acquire::Changelogs::URI::Origin::Ubuntu", "http://changelogs.ubuntu.com/changelogs/pool/@CHANGEPATH@/changelog");
Cnf.CndSet("Acquire::Changelogs::URI::Origin::Ultimedia", "http://packages.ultimediaos.com/changelogs/pool/@CHANGEPATH@/changelog.txt");
+ Cnf.CndSet("Acquire::Changelogs::AlwaysOnline::Origin::Ubuntu", true);
bool Res = true;