summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO/BuildRoot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA/DrakISO/BuildRoot.pm')
-rw-r--r--lib/MGA/DrakISO/BuildRoot.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm
index b20dc34..995b419 100644
--- a/lib/MGA/DrakISO/BuildRoot.pm
+++ b/lib/MGA/DrakISO/BuildRoot.pm
@@ -62,7 +62,7 @@ sub install_live_system {
my $base_repository = $build->{settings}{repository};
my $arch_repository = $base_repository . '/' . $arch;
- my $remote_method = $arch_repository =~ m!^(ftp|http)://! && $1;
+ my $remote_method = $arch_repository =~ m!^(ftp|https?)://! && ($1 =~ s/https/http/r);
my $chroot = $build->get_chroot_dir;
@@ -683,7 +683,7 @@ sub copy_file_to_root {
my ($root, $dst_dir, $mode, $src_file) = @_;
my $dst_file = $dst_dir . '/' . basename($src_file);
- if ($src_file =~ m!^(ftp|http)://!) {
+ if ($src_file =~ m!^(ftp|https?)://!) {
run_as_root('curl', '--silent', '-o', $root . $dst_file, $src_file)
or die "ERROR: couldn't copy $src_file to $dst_file\n";
} else {