From 01dc335b50ddf12cdaf33a1dfe77088a6a660efb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Sep 2008 15:03:38 +0000 Subject: fix regression introduced in previous commit (it was working in my cases since urpm::ensure_valid_cachedir() was called beforehand) --- urpm/download.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index e9a37531..221f5339 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -810,10 +810,11 @@ sub sync { sub get_content { my ($urpm, $url) = @_; - my $file = urpm::valid_cachedir($urpm) . '/partial/' . basename($url); + my $download_dir = urpm::valid_cachedir($urpm) . '/partial/'; + my $file = $download_dir . basename($url); unlink $file; # prevent "partial file" errors - sync_url($urpm, $url, quiet => 1) or return; + sync_url($urpm, $url, dir => $download_dir, quiet => 1) or return; my @l = cat_($file); unlink $file; -- cgit v1.2.1