diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-01-16 16:53:46 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-01-17 11:52:38 +0100 |
commit | 698f9e3f9877be2aa181d6e40d3dc5c41ea318b7 (patch) | |
tree | afcd1b5ee856242afe3de70692e358a4a6e68781 /apt-pkg/indexfile.cc | |
parent | ca2fcc639c7363a04998f650b96573d806b32dd2 (diff) |
Introduce inrelease-path option for sources.list
Allow specifying an alternative path to the InRelease file, so
you can have multiple versions of a repository, for example.
Enabling this option disables fallback to Release and Release.gpg,
so setting it to InRelease can be used to ensure that only that
will be tried.
We add two test cases: One for checking that it works, and another
for checking that the fallback does not happen.
Closes: #886745
Diffstat (limited to 'apt-pkg/indexfile.cc')
-rw-r--r-- | apt-pkg/indexfile.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index 679e2eab8..96ae2f93b 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -149,6 +149,7 @@ std::string IndexTarget::Option(OptionKeys const EnumKey) const /*{{{*/ APT_CASE(ALLOW_INSECURE); APT_CASE(ALLOW_WEAK); APT_CASE(ALLOW_DOWNGRADE_TO_INSECURE); + APT_CASE(INRELEASE_PATH); #undef APT_CASE case FILENAME: { |