diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-13 13:20:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-13 13:20:22 +0000 |
commit | 5e768d143d19126b9809aca284049290f818cbec (patch) | |
tree | ad33499086b1998095b9d9cb869af981bf7571c6 /mdkapplet | |
parent | f269b86204b522564e43aba98a03e660d4f1a155 (diff) | |
download | mgaonline-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-x | mdkapplet | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |