diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-04-09 11:38:20 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-04-09 11:38:20 +0000 |
commit | 78ad58647af5cdbd21cb76332ea5ea7b6b366d28 (patch) | |
tree | 49d45f6a2598ec32f9bf03fd07954199d854ecaa /perl-install/install | |
parent | 17e171d7fe85f987498bacea879649cfe60571cb (diff) | |
download | drakx-78ad58647af5cdbd21cb76332ea5ea7b6b366d28.tar drakx-78ad58647af5cdbd21cb76332ea5ea7b6b366d28.tar.gz drakx-78ad58647af5cdbd21cb76332ea5ea7b6b366d28.tar.bz2 drakx-78ad58647af5cdbd21cb76332ea5ea7b6b366d28.tar.xz drakx-78ad58647af5cdbd21cb76332ea5ea7b6b366d28.zip |
(get_file_and_size) be even more compatible with older http code for error management
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/http.pm | 2 |
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); |