From 6f7b8803bb55a1582d1387e0fbe7aca2fca6db1c Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 11 Jun 2021 17:36:06 +0200 Subject: [PATCH] Install apt-transport-https and ca-certificates when using mirror+https urls --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 730bd1a..808b67a 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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