From 53f35599848969b64e588db96cd0c1e20eb40002 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 28 Aug 2012 23:23:57 -0400 Subject: [PATCH] Support https repositories Add support for https enabled repositories in addition to http --- createrepomddeps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/createrepomddeps b/createrepomddeps index 5273c7b..b3d8593 100755 --- a/createrepomddeps +++ b/createrepomddeps @@ -396,7 +396,7 @@ for my $url (@ARGV) { } else { die "unsupported repo type: $type\n"; } - } elsif ($url =~ /^http:\/\/([^\/]*)\/?/) { + } elsif ($url =~ /^http[s]?:\/\/([^\/]*)\/?/) { my $repoid = md5_hex($url); $dir = "$cachedir/$repoid/"; $baseurl = $url; @@ -421,7 +421,7 @@ for my $url (@ARGV) { @cursor = ([undef, $primaryparser]); my $u = $dir . $f->{'location'}; - if ($url =~ /^http:\/\/([^\/]*)\/?/) { + if ($url =~ /^http[s]?:\/\/([^\/]*)\/?/) { if (system($INC[0].'/download', $dir . "repodata/", $baseurl . "repodata/" . basename($u))) { die("download failed\n"); } -- 2.7.4