diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-05 17:20:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-05 17:20:38 +0000 |
commit | ebc577158eb765ffea98f25276ac7dac3f443136 (patch) | |
tree | 59210b669b9028c7b17282de7225446c946936ca /mdkapplet | |
parent | 483158296053abbf1deb91f45db1302e4b071701 (diff) | |
download | mgaonline-ebc577158eb765ffea98f25276ac7dac3f443136.tar mgaonline-ebc577158eb765ffea98f25276ac7dac3f443136.tar.gz mgaonline-ebc577158eb765ffea98f25276ac7dac3f443136.tar.bz2 mgaonline-ebc577158eb765ffea98f25276ac7dac3f443136.tar.xz mgaonline-ebc577158eb765ffea98f25276ac7dac3f443136.zip |
(is_there_a_new_distributions) do not do anything if current
distribution isn't listed on api.mandriva.com, thus fixing offering to
upgrade 2010.0 to 2009.1 when 2010.0 isn't listed yet on api.mdv.com
(#55017)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -333,6 +333,9 @@ sub is_there_a_new_distributions() { my @distros = map { common::parse_LDAP_namespace_structure(chomp_($_)) } @lines; + # do not do anything if current distribution isn't listed on api.mdv.com: + return if !member($product_id->{version}, map { $_->{version} } @distros); + # only compare first distro: if it's not the same as the currently installed one, # then it's the most recent release: my $new_distribution = $distros[0]; |