]> git.saurik.com Git - apt.git/commit - methods/rred.cc
implement generic config fallback for methods
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 31 Jul 2016 16:05:56 +0000 (18:05 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 10 Aug 2016 21:19:44 +0000 (23:19 +0200)
commit30060442025824c491f58887ca7369f3c572fa57
treebe5a114540fe297adf3c1bf9c167d8b8c627575b
parent4bba5a88d0f6afde4414b586b64c48a4851d5324
implement generic config fallback for methods

The https method implemented for a long while now a hardcoded fallback
to the same options in http, which, while it works, is rather inflexible
if we want to allow the methods to use another name to change their
behavior slightly, like apt-transport-tor does to https – most of the
diff being s#https#tor#g which then fails to do the full circle
fallthrough tor -> https -> http for https sources. With this config
infrastructure this could be implemented now.
18 files changed:
methods/aptmethod.h
methods/cdrom.cc
methods/gpgv.cc
methods/http.cc
methods/http.h
methods/http_main.cc
methods/https.cc
methods/https.h
methods/mirror.cc
methods/rred.cc
methods/rsh.cc
methods/rsh.h
methods/server.cc
methods/server.h
methods/store.cc
test/integration/test-bug-738785-switch-protocol
test/integration/test-different-methods-for-same-source
test/integration/test-pdiff-usage