aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2023-09-30 09:21:42 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2023-09-30 09:21:42 +0100
commitbb45da5ab4f0bdb6468809e4dfb223f57533d2ec (patch)
tree7e918e6731bdf81f06df3011c08ff4cafb932fa6
parent78fb6be614b967dee9adc59085d538ae70a42916 (diff)
downloadqarepo-bb45da5ab4f0bdb6468809e4dfb223f57533d2ec.tar
qarepo-bb45da5ab4f0bdb6468809e4dfb223f57533d2ec.tar.gz
qarepo-bb45da5ab4f0bdb6468809e4dfb223f57533d2ec.tar.bz2
qarepo-bb45da5ab4f0bdb6468809e4dfb223f57533d2ec.tar.xz
qarepo-bb45da5ab4f0bdb6468809e4dfb223f57533d2ec.zip
Support https in repository URLs (mga#32333).
-rw-r--r--NEWS2
-rw-r--r--qarepo2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9e7aaf6..5f4076b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- support https in repository URLs
+
1.6:
- use polkit for authentication instead of sudo
diff --git a/qarepo b/qarepo
index b7629d7..8efc35d 100644
--- a/qarepo
+++ b/qarepo
@@ -509,7 +509,7 @@ sub sync_repo {
my $sync_file;
if ($mirror =~ /^rsync:/) {
$sync_file = \&sync_file_rsync;
- } elsif ($mirror =~ /^ftp:/ || $mirror =~ /^http:/) {
+ } elsif ($mirror =~ /^ftp:/ || $mirror =~ /^https?:/) {
$sync_file = \&sync_file_aria2;
} elsif ($mirror !~ /^\w+:/) {
$sync_file = \&sync_file_link;