From c47225a60af9087ee5e7c132a3f0d105e581324d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 23 May 2012 18:27:20 +0000 Subject: (get_file_and_size) drop workaround for urpmi dying when downloader fails and leaving us in another directory now that urpmi is fixed why didn't you fixed urpmi directly blino??? --- perl-install/install/http.pm | 5 ----- 1 file changed, 5 deletions(-) (limited to 'perl-install/install/http.pm') diff --git a/perl-install/install/http.pm b/perl-install/install/http.pm index 1ddf986a1..da6d6982c 100644 --- a/perl-install/install/http.pm +++ b/perl-install/install/http.pm @@ -56,12 +56,7 @@ sub get_file_and_size { urpm::download::set_cmdline_proxy(http_proxy => "http://$proxy/"); } - (my $cwd) = getcwd() =~ /(.*)/; my $res = eval { urpm::download::sync_url($urpm, $url, %o_options, dir => $cachedir) }; - #- urpmi does not always reset cwd when dying or failing! - #- do not stay in /mnt/var/cache/urpmi, it's evil to be in /mnt - #- FIXME: fix urpmi - chdir $cwd; if ($res) { open(my $f, $file); -- cgit v1.2.1