diff options
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 27f03f98..bd0afd9e 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -772,6 +772,9 @@ sub sync { sub get_content { my ($urpm, $url) = @_; + # ensure $urpm->{cachedir} is writable when non-superuser + urpm::userdir($urpm); + my $file = "$urpm->{cachedir}/partial/" . basename($url); unlink $file; # prevent "partial file" errors |