summaryrefslogtreecommitdiff
path: root/createrepomddeps
diff options
context:
space:
mode:
Diffstat (limited to 'createrepomddeps')
-rwxr-xr-xcreaterepomddeps4
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");
}