summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-04 13:28:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-04 13:28:03 +0000
commit0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c (patch)
treeef730cdb53704479a0596c1f50765bd9fa76f6ed /mdkapplet
parentcf69c19644faf7ce0ea8ae8428cb7bbd45398f74 (diff)
downloadmgaonline-0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c.tar
mgaonline-0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c.tar.gz
mgaonline-0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c.tar.bz2
mgaonline-0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c.tar.xz
mgaonline-0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c.zip
(is_there_a_new_distributions) fix dowloading distributions list by downloading in a writeable directory
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 73e74735..3672ee33 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -263,7 +263,7 @@ sub is_there_a_new_distributions() {
my @lines = eval {
my $urpm = Rpmdrake::open_db::fast_open_urpmi_db();
- my $res = urpm::download::sync($urpm, undef, [ $list ], dir => $urpm->{cachedir} || '/root');
+ my $res = urpm::download::sync($urpm, undef, [ $list ], dir => urpm::userdir($urpm) || $urpm->{cachedir});
$res or die sprintf("retrieval of [%s] failed", $list) . "\n";
};