diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-05 11:48:05 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-05 11:48:05 +0000 |
commit | 91b1512714a88cc406675d3dfeea93d57ec6de60 (patch) | |
tree | d54cf645751f807649dd75367a032d1ffda64ef2 | |
parent | 732698d049eb3278f3fbcf05e4f13cee29ef9a93 (diff) | |
download | urpmi-91b1512714a88cc406675d3dfeea93d57ec6de60.tar urpmi-91b1512714a88cc406675d3dfeea93d57ec6de60.tar.gz urpmi-91b1512714a88cc406675d3dfeea93d57ec6de60.tar.bz2 urpmi-91b1512714a88cc406675d3dfeea93d57ec6de60.tar.xz urpmi-91b1512714a88cc406675d3dfeea93d57ec6de60.zip |
fixed in sync_curl to go back to cwd from urpmi partial cache.
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -209,6 +209,7 @@ sub sync_curl { -x "/usr/bin/curl" or die N("curl is missing\n"); local *CURL; my $options = shift @_; + my $cwd = `pwd`; chomp $cwd; chdir(ref($options) ? $options->{dir} : $options); my (@ftp_files, @other_files); foreach (@_) { @@ -292,7 +293,10 @@ sub sync_curl { $buf = ''; } } + chdir $cwd; close CURL or die N("curl failed: exited with %d or signal %d\n", $? >> 8, $? & 127); + } else { + chdir $cwd; } } sub sync_rsync { |