diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-02-05 15:33:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-02-05 15:33:10 +0000 |
commit | ee8462daeb1dbe7564a32da429dd75a8eaffaa00 (patch) | |
tree | 8b8a02a992688d708c26ea406f70ede838e354cb /mdkapplet | |
parent | 642dad5e9edc5027a2ce33d6f820968dbbe70e4d (diff) | |
download | mgaonline-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
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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})); |