diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 17:33:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 17:33:00 +0000 |
commit | 283ef36a539f044c92cd676e6d734418985f0c4c (patch) | |
tree | 447ef2e5a468d927a54d245252712dd8f202a70b /mdkapplet | |
parent | 0f757f957dfb1350b6654cc91972464f7d9febdf (diff) | |
download | mgaonline-283ef36a539f044c92cd676e6d734418985f0c4c.tar mgaonline-283ef36a539f044c92cd676e6d734418985f0c4c.tar.gz mgaonline-283ef36a539f044c92cd676e6d734418985f0c4c.tar.bz2 mgaonline-283ef36a539f044c92cd676e6d734418985f0c4c.tar.xz mgaonline-283ef36a539f044c92cd676e6d734418985f0c4c.zip |
(is_there_a_new_distributions) better check in order to exclude cooker
from distro upgrade
rationale: older/unsupported distro aren't in the list as well as
cooker (2009.1 won't be in the list)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -261,12 +261,6 @@ sub is_there_a_new_distributions() { my $list = "http://api.mandriva.com/distributions/$type.$product_id->{arch}.list?product=$product_id->{product}"; log::explanations("trying distributions list from $list"); - # sanity check for cooker: - if ($product_id->{branch} eq 'Devel') { - log::explanations("devel distribution is not supported"); - return; - } - my @lines = eval { my $urpm = Rpmdrake::open_db::fast_open_urpmi_db(); if (member($product_id->{version}, qw(2007.1 2008.0 2008.1))) { @@ -293,6 +287,8 @@ sub is_there_a_new_distributions() { # then it's the most recent release: my $new_distro = $distros[0]; + return if !member($product_id->{version}, map { $_->{version} } @distros); + if ($new_distro && $new_distro->{version} ne $product_id->{version}) { $new_distro_version = $new_distro->{version}; log::explanations(sprintf("new '%s' distribution was released on %s", $new_distro_version, $new_distro->{release_date})); |