summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/http.pm2
1 files changed, 1 insertions, 1 deletions
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);