Fix support for apt-transport-mirror URLs #8

Closed
boklm wants to merge 2 commits from boklm/mmdebstrap:fix_apt-transport-mirror into main
Showing only changes of commit 6f7b8803bb - Show all commits

View file

@ -2865,7 +2865,7 @@ sub run_install() {
'--format', '$(URI)', 'Created-By: Packages')
or error "cannot start apt-get indextargets: $!";
while (my $uri = <$pipe_apt>) {
if ($uri =~ /^https:\/\//) {
if ($uri =~ /^(mirror\+)?https:\/\//) {
info "https mirror found -- adding apt-transport-https "
. "and ca-certificates";
# FIXME: support for https is part of apt >= 1.5