aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 14:14:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 14:14:06 +0000
commita908eff5182f1774163abdc724b81885b4cdaebf (patch)
treee2abcb8a3dc933906d3605e41873813749658a33 /Rpmdrake/gui.pm
parent6344550dcc74c84bf7c77c45ca329aa6458d55ee (diff)
downloadrpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.gz
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.bz2
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.xz
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.zip
(build_tree,open_rpm_db,run_treeview_dialog,show_urpm_progress,Rpmdrake::widgets::new) kill warnings
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index be9951a9..fb5193e6 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -726,7 +726,7 @@ sub ctreefy {
sub build_tree {
my ($tree, $tree_model, $elems, $options, $force_rebuild, $compssUsers, $flat, $mode) = @_;
- my $old_mode if 0;
+ state $old_mode;
$mode = $options->{rmodes}{$mode} || $mode;
return if $old_mode eq $mode && !$force_rebuild;
$old_mode = $mode;
@@ -749,7 +749,7 @@ sub build_tree {
} @keys;
if (@keys == 0) {
add_node('', N("(none)"), { nochild => 1 });
- my $explanation_only_once if 0;
+ state $explanation_only_once;
$explanation_only_once or interactive_msg(N("No update"),
N("The list of updates is empty. This means that either there is
no available update for the packages installed on your computer,