summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2b6bd16d..7f7ad471 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet:
+ o fix dowloading distributions list
o offer to add media directly from bubble (#39987)
o prevent running media manager more than one at a time
o run media manager with --no-splash' option and handle "--urpmi-root=$root"
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";
};