summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet-upgrade-helper7
2 files changed, 10 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 44af1032..e7702269 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet-upgrade-helper
+ o disable custom downloader settings in order to default to aria2
+
Version 2.63 - 16 October 2008
- mdkapplet
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index 03f51054..a4004ba1 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -163,6 +163,13 @@ packages as well?)."))
log::explanations("removing all existing urpmi media for upgrade");
run_program::run('urpmi.removemedia', if_($root, '--urpmi-root', $root), '-a');
+ $urpm = Rpmdrake::open_db::fast_open_urpmi_db();
+ if ($urpm->{global_config}{downloader}) {
+ log::explanations("disabling custom downloader in order to use aria2");
+ delete $urpm->{global_config}{downloader};
+ urpm::media::write_config($urpm);
+ }
+
log::explanations("adding urpmi media for new distribution");
$ENV{URPMI_ADDMEDIA_REASON} = join(',', 'reason=upgrade', 'upgrade_by=mdkapplet', "upgrade_from=$product_id->{version}");