summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 2 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index 291c80eb..73cf5ef6 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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}));