summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-13 13:20:22 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-13 13:20:22 +0000
commit5e768d143d19126b9809aca284049290f818cbec (patch)
treead33499086b1998095b9d9cb869af981bf7571c6
parentf269b86204b522564e43aba98a03e660d4f1a155 (diff)
downloadmgaonline-5e768d143d19126b9809aca284049290f818cbec.tar
mgaonline-5e768d143d19126b9809aca284049290f818cbec.tar.gz
mgaonline-5e768d143d19126b9809aca284049290f818cbec.tar.bz2
mgaonline-5e768d143d19126b9809aca284049290f818cbec.tar.xz
mgaonline-5e768d143d19126b9809aca284049290f818cbec.zip
(upgrade) log reason as well as current & target distro when querying mirror list for distro upgrade
-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;