From ce00ea1e3f1e3fb1f342e3e600fa114b7bb07250 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 1 May 2007 21:13:28 +0000 Subject: * use continuation-flag for FTP-URLs. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@982 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/Engine.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm index 4ba362b4..584e6f65 100644 --- a/installer/OpenSLX/OSSetup/Engine.pm +++ b/installer/OpenSLX/OSSetup/Engine.pm @@ -445,9 +445,12 @@ sub downloadBaseFiles try_next_url: my $url = $URLs[$self->{'baseURL-index'}]; $url .= "/$pkgSubdir" if length($pkgSubdir); + my @contFlags = (); + push @contFlags, '-c' if ($url =~ m[^ftp]); + # continuing is only supported with FTP, but not with HTTP foreach my $file (split '\s+', $fileVariantStr) { vlog 2, "fetching <$file>..."; - if (slxsystem("wget", "$url/$file") == 0) { + if (slxsystem("wget", @contFlags, "$url/$file") == 0) { $foundFile = basename($file); last; } -- cgit v1.2.3-55-g7522