diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:52:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:52:17 +0000 |
commit | d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e (patch) | |
tree | ce78696ac34e280e8393b381cdd87955d8ee4775 /urpm/download.pm | |
parent | 1734ec1d100bcc65a7e80c0c93285738365a9ae8 (diff) | |
download | urpmi-d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e.tar urpmi-d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e.tar.gz urpmi-d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e.tar.bz2 urpmi-d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e.tar.xz urpmi-d976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e.zip |
drop /usr/X11R6/bin from $PATH
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 18c63f42..97187270 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -886,7 +886,11 @@ sub sync_rel { my @result_files = map { $all_options->{dir} . '/' . basename($_) } @$rel_files; unlink @result_files if $all_options->{preclean}; - if (eval { _sync_webfetch_raw($urpm, $medium, $rel_files, \@files, $all_options); 1 }) { + (my $cwd) = getcwd() =~ /(.*)/; + eval { _sync_webfetch_raw($urpm, $medium, $rel_files, \@files, $all_options) }; + my $err = $@; + chdir $cwd; + if (!$err) { $urpm->{log}(N("retrieved %s", $files_text)); \@result_files; } else { |