summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 05cdf77a..e6c60e07 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -610,7 +610,7 @@ sub sync_aria2 {
(my $cwd) = getcwd() =~ /(.*)/;
chdir $options->{dir};
- my $stat_file = ($ENV{HOME} || '/root') . '/.aria2-adaptive-stats';
+ my $stat_file = ($< ? $ENV{HOME} : '/root') . '/.aria2-adaptive-stats';
my @files = uniq(map {
my $metalinkfile = $_;