summaryrefslogtreecommitdiffstats
path: root/mdkapplet
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 /mdkapplet
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
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
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;