diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | mdkapplet | 8 |
2 files changed, 3 insertions, 6 deletions
@@ -1,5 +1,6 @@ - mdkapplet o add support for downloading distro list as user for 2008.1 + o better check in order to exclude cooker from distro upgrade Version 2.43 - 30 September 2008 @@ -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})); |