From 9c335d6e5a8924b589b3ea79525a59ccaa00ab95 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 2 May 2013 15:14:59 +0000 Subject: fix displaying ads (mga#9939) regression introduced in commit r8029 on 2013-04-26: "fix doble logging of 'filesystem' installation (mga#7758)" --- perl-install/install/NEWS | 2 ++ perl-install/install/steps_gtk.pm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 79120fe0e..5c9157aa6 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- fix displaying ads (mga#9939) + Version 15.48 - 1 May 2013 - include mount options in auto_inst.pl diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index da6f0b013..77796072f 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -630,13 +630,14 @@ sub installPackages { $o->{install_start_time} = 0; mygtk2::gtkadd($pkg_log_widget, text => P("%d package", "%d packages", $nb, $nb)); $w->flush; + } elsif ($type eq 'open') { + $advertize->(1) if $show_advertising && $total_size > 20_000_000 && time() - $change_time > 20; } elsif ($type eq 'inst' && $subtype eq 'start') { gtkval_modify(\$pkg_progress, 0); my $p = $packages->{depslist}[$id]; mygtk2::gtkadd($pkg_log_widget, text => sprintf("\n%s: %s", $p->name, translate($p->summary))); $current_total_size += $last_size; $last_size = $p->size; - $advertize->(1) if $show_advertising && $total_size > 20_000_000 && time() - $change_time > 20; # display release notes if requested, when not chrooted: if ($show_release_notes) { -- cgit v1.2.1