diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-08-28 23:23:57 -0400 |
---|---|---|
committer | Stephan Kulow <coolo@suse.de> | 2012-09-24 16:56:31 +0200 |
commit | 53f35599848969b64e588db96cd0c1e20eb40002 (patch) | |
tree | 6d550046c12d3b555e8f892f9cb2d125143d1cf1 | |
parent | 4ffaab9f44c4a7a69cc222321b810b6033d21861 (diff) | |
download | build-53f35599848969b64e588db96cd0c1e20eb40002.tar.gz build-53f35599848969b64e588db96cd0c1e20eb40002.tar.bz2 build-53f35599848969b64e588db96cd0c1e20eb40002.zip |
Support https repositories
Add support for https enabled repositories in addition to http
-rwxr-xr-x | createrepomddeps | 4 |
1 files 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"); } |