summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-18 13:52:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-18 13:52:00 +0000
commitf29cd86fbd748de5a623bd75b2f8ac320c5ce2b9 (patch)
treeac68dd9ae9bc47815cd1b9ba53979dc25766280d /perl-install/install/steps_gtk.pm
parent7ee91f13918cdf5e69091006cd9f7197dc583284 (diff)
downloaddrakx-f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9.tar
drakx-f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9.tar.gz
drakx-f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9.tar.bz2
drakx-f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9.tar.xz
drakx-f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9.zip
"my $foo if 0" semantic has changed in some cases, using the new "state" keyword instead
Diffstat (limited to 'perl-install/install/steps_gtk.pm')
-rw-r--r--perl-install/install/steps_gtk.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm
index fd68ee955..98cc80ac0 100644
--- a/perl-install/install/steps_gtk.pm
+++ b/perl-install/install/steps_gtk.pm
@@ -2,6 +2,7 @@ package install::steps_gtk; # $Id$
use diagnostics;
use strict;
+use feature 'state';
use vars qw(@ISA);
@ISA = qw(install::steps_interactive interactive::gtk);
@@ -474,7 +475,7 @@ sub installPackages {
local $::noborderWhenEmbedded = 1;
my $w = ugtk2->new(N("Installing"), icon => 'banner-sys');
- my $show_advertising if 0;
+ state $show_advertising;
my $pkg_log_widget = gtknew('TextView', editable => 0);
my ($advertising_image, $change_time, $i);