diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | urpm/download.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,8 @@ - remove rsync mirrors when calling aria2 - gurpmi, gurpmi2: o silence perl warnings (ie remove "use warnings") +- library: + o modify urpm::download::get_content() to work as non-superuser Version 6.7 - 3 September 2008, Pascal "Pixel" Rigaux diff --git a/urpm/download.pm b/urpm/download.pm index 696e22cc..e9a37531 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -810,7 +810,7 @@ sub sync { sub get_content { my ($urpm, $url) = @_; - my $file = "$urpm->{cachedir}/partial/" . basename($url); + my $file = urpm::valid_cachedir($urpm) . '/partial/' . basename($url); unlink $file; # prevent "partial file" errors sync_url($urpm, $url, quiet => 1) or return; |