summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b7e36e6e..f1c8bb4a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet
+ o log reason as well as current & target distro for distro upgrade
o do not crash if image cannot be loaded (#44750)
Version 2.55 - 10 October 2008
diff --git a/mdkapplet b/mdkapplet
index cee3cce3..fa450701 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -466,7 +466,8 @@ sub upgrade() {
logIt("adding urpmi media for new distribution");
my $product_type = lc($product_id->{type}); $product_type =~ s/\s//g;
- my $mirror_list = "http://api.mandriva.com/mirrors/$product_type.$new_distro->{version}.$product_id->{arch}.list";
+ my $mirror_list = "http://api.mandriva.com/mirrors/$product_type.$new_distro->{version}.$product_id->{arch}.list?" .
+ join(',', 'reason=upgrade', 'upgrade_by=mdkapplet', "upgrade_from=$product_id->{version}");
system('gurpmi.addmedia', '--silent-success', if_($root, "--urpmi-root=$root"), '--distrib', '--mirrorlist', $mirror_list)
and return;