From 5404e79e4b0dab6612b00913db07e06f3637524f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 28 Mar 2008 13:07:39 +0000 Subject: make "by update availability" view usable (#39461) --- Rpmdrake/gui.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 2a54f880..e81017c3 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -872,7 +872,7 @@ or you already installed all of them.")); _build_tree($elems, $sortmethods{by_medium}->(map { my $m = pkg2medium($pkgs->{$_->[0]}{pkg}, $urpm); [ $_->[0], $m->{name}, $m->{priority} ]; } @elems)); - } elsif ($mode eq 'by_presence') { + } elsif ($::mode->[0] eq 'by_presence') { add_node( $_->[0], $pkgs->{$_->[0]}{pkg}->flag_installed && !$pkgs->{$_->[0]}{pkg}->flag_skip ? N("Upgradable") : N("Addable") -- cgit v1.2.1