summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-08 18:52:17 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-08 18:52:17 +0000
commitd976891fe38a82a8aa6e0fb6a5c5bb40bab1a18e (patch)
treece78696ac34e280e8393b381cdd87955d8ee4775 /urpm
parent1734ec1d100bcc65a7e80c0c93285738365a9ae8 (diff)
downloadurpmi-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')
-rw-r--r--urpm/download.pm6
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 {