explicitly inform the user why apt-transport-https or apt-transport-tor are getting installed

This commit is contained in:
Johannes 'josch' Schauer 2020-04-10 12:55:52 +02:00
parent 9195972bef
commit f1a952d468
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2295,6 +2295,8 @@ sub run_install() {
or error "cannot start apt-get indextargets: $!";
while (my $uri = <$pipe_apt>) {
if ($uri =~ /^https:\/\//) {
info "https mirror found -- adding apt-transport-https "
. "and ca-certificates";
# FIXME: support for https is part of apt >= 1.5
push @pkgs_to_install_from_outside, 'apt-transport-https';
push @pkgs_to_install_from_outside, 'ca-certificates';
@ -2302,6 +2304,7 @@ sub run_install() {
} elsif ($uri =~ /^tor(\+[a-z]+)*:\/\//) {
# tor URIs can be tor+http://, tor+https:// or even
# tor+mirror+file://
info "tor mirror found -- adding apt-transport-tor";
push @pkgs_to_install_from_outside, 'apt-transport-tor';
last;
}