summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2018-01-18 14:24:48 +0000
committerJulian Andres Klode <jak@debian.org>2018-01-18 14:24:48 +0000
commit697b6cc80057b08534fb2e7ea6c913aae34cceb9 (patch)
tree62b7a69010923a7cd3bd43615642f53baa11819b /apt-pkg/deb
parent8aae95a7f87a50d1eeb3c4720556a117ec1f59d9 (diff)
parent698f9e3f9877be2aa181d6e40d3dc5c41ea318b7 (diff)
Merge branch 'inrelease-path' into 'master'
Introduce inrelease-path option for sources.list See merge request apt-team/apt!2
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debmetaindex.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc
index 2688052a4..59a26390e 100644
--- a/apt-pkg/deb/debmetaindex.cc
+++ b/apt-pkg/deb/debmetaindex.cc
@@ -1092,6 +1092,10 @@ class APT_HIDDEN debSLTypeDebian : public pkgSourceList::Type /*{{{*/
if (GetBoolOption(Options, "allow-downgrade-to-insecure", _config->FindB("Acquire::AllowDowngradeToInsecureRepositories")))
ReleaseOptions.emplace("ALLOW_DOWNGRADE_TO_INSECURE", "true");
+ auto InReleasePath = Options.find("inrelease-path");
+ if (InReleasePath != Options.end())
+ ReleaseOptions.emplace("INRELEASE_PATH", InReleasePath->second);
+
debReleaseIndex * Deb = nullptr;
std::string const FileName = URItoFileName(constructMetaIndexURI(URI, Dist, "Release"));
for (auto const &I: List)