forked from josch/mmdebstrap
explicitly inform the user why apt-transport-https or apt-transport-tor are getting installed
This commit is contained in:
parent
9195972bef
commit
f1a952d468
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue