From e0a83f1ad47b8437cc367d9b9af36e9cb15604a0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 Oct 2009 19:06:58 +0000 Subject: (is_there_a_new_distributions) use new api.mdv.com API for detecting if current distro is obsolete --- mdkapplet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index 245e80b5..fe29f86d 100755 --- a/mdkapplet +++ b/mdkapplet @@ -342,9 +342,10 @@ sub is_there_a_new_distributions() { return 1; } - $no_more_supported = !member($product_id->{version}, map { $_->{version} } @distros); + my $current_distro = find { $_->{version} eq $product_id->{version} } @distros; + $no_more_supported = $current_distro->{obsoleted_by}; if ($no_more_supported) { - $new_distro = $new_distribution; + $new_distro = find { $_->{version} eq $no_more_supported } @distros; return; } -- cgit v1.2.1