summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet5
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 2fb76501..cb4e78c8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o better check for detecting if current distro is obsolete
+
Version 2.77.6 - 16 September 2009, Aurelien Lefebvre
- mdkapplet
diff --git a/mdkapplet b/mdkapplet
index 245e80b5..fe29f86d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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;
}