From 0e52aaca27cc67f04a94d0b3bc1cff7e1230c31c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 4 Sep 2008 13:28:03 +0000 Subject: (is_there_a_new_distributions) fix dowloading distributions list by downloading in a writeable directory --- mdkapplet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdkapplet') 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"; }; -- cgit v1.2.1