diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-29 19:06:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-29 19:06:58 +0000 |
commit | e0a83f1ad47b8437cc367d9b9af36e9cb15604a0 (patch) | |
tree | b60c0ed5e33ef3d29d6f237926c3e6459d39e458 /mdkapplet | |
parent | a3aa20e15d4e8c4bf55057a2cdd231a8c7704b65 (diff) | |
download | mgaonline-e0a83f1ad47b8437cc367d9b9af36e9cb15604a0.tar mgaonline-e0a83f1ad47b8437cc367d9b9af36e9cb15604a0.tar.gz mgaonline-e0a83f1ad47b8437cc367d9b9af36e9cb15604a0.tar.bz2 mgaonline-e0a83f1ad47b8437cc367d9b9af36e9cb15604a0.tar.xz mgaonline-e0a83f1ad47b8437cc367d9b9af36e9cb15604a0.zip |
(is_there_a_new_distributions) use new api.mdv.com API for detecting
if current distro is obsolete
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |