From 78ad58647af5cdbd21cb76332ea5ea7b6b366d28 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 9 Apr 2009 11:38:20 +0000 Subject: (get_file_and_size) be even more compatible with older http code for error management --- perl-install/install/http.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/http.pm') diff --git a/perl-install/install/http.pm b/perl-install/install/http.pm index 4e9a0ba51..236fd745f 100644 --- a/perl-install/install/http.pm +++ b/perl-install/install/http.pm @@ -54,7 +54,7 @@ sub get_file_and_size { urpm::download::set_cmdline_proxy(http_proxy => "http://$proxy/"); } - my $res = urpm::download::sync_url($urpm, $url, dir => $cachedir); + my $res = eval { urpm::download::sync_url($urpm, $url, dir => $cachedir) }; if ($res) { open(my $f, $file); (-s $file, $f); -- cgit v1.2.1