11 Commits
Author SHA1 Message Date
David Kalnischkies 579f8f1008 support tor+https being handled by http
The apt-transport-tor package operates via simple symlinks which can
result in 'http' being called as 'tor+https', so it must pick up the
right configuration pieces and trigger https support also in plus names.
2017-06-28 22:26:56 +02:00
David Kalnischkies 29a08d8ab0 Fix https->http redirect issues
Gbp-Dch: ignore
2017-06-28 15:52:38 +02:00
David Kalnischkies c9c9106951 allow methods to be disabled and redirected via config
To prevent accidents like adding http-sources while using tor+http it
can make sense to allow disabling methods. It might even make sense to
allow "redirections" and adding "symlinked" methods via configuration.
This could e.g. allow using different options for certain sources by
adding and configuring a "virtual" new method which picks up the config
based on the name it was called with like e.g. http does if called as
tor+http.
2016-08-10 23:19:44 +02:00
David Kalnischkies 4bba5a88d0 use the same redirection handling for http and https
cURL which backs our https implementation can handle redirects on its
own, but by dealing with them on our own we gain finer control over which
redirections will be performed (we don't like https → http) and by whom
so that redirections to other hosts correctly spawn a new https method
dealing with these instead of letting the current one deal with it.
2016-08-10 23:19:44 +02:00
David Kalnischkies 3abb6a6a1e tests: support spaces in path and TMPDIR
This doesn't allow all tests to run cleanly, but it at least allows to
write tests which could run successfully in such environments.

Git-Dch: Ignore
2015-12-19 23:04:34 +01:00
David Kalnischkies 6c0765c096 tests: don't use hardcoded port for http and https
This allows running tests in parallel.

Git-Dch: Ignore
2015-09-15 10:16:09 +02:00
David Kalnischkies 27925d82dd improve https method queue progress reporting
The worker expects that the methods tell him when they start or finish
downloading a file. Various information pieces are passed along in this
report including the (expected) filesize. https was using a "global"
struct for reporting which made it 'reuse' incorrect values in some
cases like a non-existent InRelease fallbacking to Release{,.gpg}
resulting in a size-mismatch warning. Reducing the scope and redesigning
the setting of the values we can fix this and related issues.

Closes: 777565, 781509
Thanks: Robert Edmonds and Anders Kaseorg for initial patchs
2015-04-19 01:13:08 +02:00
David Kalnischkies 2bd6be8ad2 relax grep to support newer curl output format
Git-Dch: Ignore
2014-09-20 00:12:13 +02:00
David Kalnischkies 0d58c26ad7 improve debug output in case downloadfile fails
Git-Dch: Ignore
2014-03-13 13:58:46 +01:00
Michael Vogt ed9665aedf initial version of apt-helper 2014-02-27 22:34:57 +01:00
Michael Vogt dc95fee18e disable https->http redirects in libcurl
This change prevents changing the protocol from https to http.
2014-02-14 19:10:47 +01:00