diff options
-rwxr-xr-x | rpmdrake | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -94,7 +94,7 @@ N("You are launching this program as a normal user. You will not be able to perform modifications on the system, but you may still browse the existing database."), yesno => 1, text => { no => N("Cancel"), yes => N("Ok") }) or myexit(0)); -$don't_show_selections = 0; +my $dont_show_selections = 0; #- /usr/share/rpmlint/TagsCheck.py (duplicates are normal, so that we are not too far away from .py) my @valid_groups = ( @@ -307,9 +307,9 @@ sub db { $done = 1; print "done.\n"; } - URPM::DB::open($dblocation) or die 'Couldn\'t open RPM DB'; + URPM::DB::open($dblocation) or die "Couldn't open RPM DB"; } else { - URPM::DB::open or die 'Couldn\'t open RPM DB'; + URPM::DB::open or die "Couldn't open RPM DB"; } } @@ -518,12 +518,12 @@ or you already installed all of them.")); @nodes = grep { exists $pkgs->{$_} } @nodes or return; return if @nodes == keys %$pkgs; #- avoid selecting every package - return if !$don't_show_selections && @nodes > 2000; #- avoid selecting too many packages at once + return if !$dont_show_selections && @nodes > 2000; #- avoid selecting too many packages at once my $new_state = !$pkgs->{$nodes[0]}{selected}; my @nodes_with_deps; my $deps_msg = sub { - return 1 if $don't_show_selections; + return 1 if $dont_show_selections; my ($title, $msg, $nodes, $nodes_with_deps) = @_; my @deps = sort { $a cmp $b } difference2($nodes_with_deps, $nodes); @deps > 0 or return 1; @@ -1018,7 +1018,7 @@ Is it ok to continue?", Gtk2::HBox->new(0, 10), 1, gtksignal_connect( #- don't show in browse mode my $show_selections_button = Gtk2::CheckButton->new(N("Show automatically selected packages")), - clicked => sub { $don't_show_selections = !$_[0]->get_active }, + clicked => sub { $dont_show_selections = !$_[0]->get_active }, ), 0, $status ), @@ -1046,7 +1046,7 @@ Is it ok to continue?", ), ), ); - $show_selections_button and $show_selections_button->set_active(!$don't_show_selections); + $show_selections_button and $show_selections_button->set_active(!$dont_show_selections); $> and $action_button->set_sensitive(0); $find_entry->grab_focus; |