diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-02 13:23:56 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-02 13:23:56 +0000 |
commit | 5806510e0539110a7ad45527ee7054e43443cefa (patch) | |
tree | fb7f39f77f441744fbca9142ff4bdcdfdbc07325 /urpm | |
parent | 30886fa74b69d7094112dfef334b5ec6750ed8de (diff) | |
download | urpmi-5806510e0539110a7ad45527ee7054e43443cefa.tar urpmi-5806510e0539110a7ad45527ee7054e43443cefa.tar.gz urpmi-5806510e0539110a7ad45527ee7054e43443cefa.tar.bz2 urpmi-5806510e0539110a7ad45527ee7054e43443cefa.tar.xz urpmi-5806510e0539110a7ad45527ee7054e43443cefa.zip |
use /root/.aria2-adaptive-stats when launched as root
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/download.pm | 2 |
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 = $_; |