summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-02-05 15:33:10 +0000
committerThierry Vignaud <tv@mandriva.org>2010-02-05 15:33:10 +0000
commitee8462daeb1dbe7564a32da429dd75a8eaffaa00 (patch)
tree8b8a02a992688d708c26ea406f70ede838e354cb
parent642dad5e9edc5027a2ce33d6f820968dbbe70e4d (diff)
downloadmgaonline-ee8462daeb1dbe7564a32da429dd75a8eaffaa00.tar
mgaonline-ee8462daeb1dbe7564a32da429dd75a8eaffaa00.tar.gz
mgaonline-ee8462daeb1dbe7564a32da429dd75a8eaffaa00.tar.bz2
mgaonline-ee8462daeb1dbe7564a32da429dd75a8eaffaa00.tar.xz
mgaonline-ee8462daeb1dbe7564a32da429dd75a8eaffaa00.zip
(is_extended_support_not_ended, is_there_a_new_distributions) do not
check for new distro when using extended maintenance
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet13
2 files changed, 13 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e030a76d..2f21c990 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet
+ o do not check for new distro when using extended maintenance
o further fix notifying extended maintenance taking over regular
maintenance
diff --git a/mdkapplet b/mdkapplet
index 7b0138cb..362c0a8a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -292,6 +292,14 @@ Gtk2->main;
ugtk2::exit(0);
+sub is_extended_support_not_ended {
+ return if !is_extmaint_supported();
+ require POSIX;
+ my $d = POSIX::strftime("%G%m%d", localtime(time()));
+ $d < $extended_maintenance_end;
+}
+
+
sub is_there_a_new_distributions() {
# sanity check for cooker:
# (2008.0 wrongly reports 'Devel' instead of 'Official'):
@@ -318,12 +326,15 @@ sub is_there_a_new_distributions() {
refresh_no_more_supported_msg();
if ($no_more_supported) {
$new_distro = find { $_->{version} eq $no_more_supported } @distros;
- return;
+ return if is_extended_support_not_ended();
}
# the "live upgrade" is not available on 2008.0:
return if is_it_2008_0();
+ # no if we're using the extended maintenance:
+ return if is_extended_support_not_ended();
+
if ($new_distribution && $new_distribution->{version} ne $product_id->{version}) {
$new_distro = $new_distribution;
log::explanations(sprintf("new '%s' distribution was released on %s", $new_distro->{version}, $new_distro->{release_date}));