summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
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;