diff options
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})); |