From ebc577158eb765ffea98f25276ac7dac3f443136 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Nov 2009 17:20:38 +0000 Subject: (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) --- mdkapplet | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index fe29f86d..452d4168 100755 --- a/mdkapplet +++ b/mdkapplet @@ -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]; -- cgit v1.2.1