aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-19 17:58:27 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-19 17:58:27 +0000
commitb99b649e324c66a89e7696fe86a2984e7501d767 (patch)
tree8ff79ba03dcd9e0ca87e26677e6dd3dfc7c6522b
parent7606adc3719bea77e0bce2c1638dda6ab09bfed9 (diff)
downloadrpmdrake-b99b649e324c66a89e7696fe86a2984e7501d767.tar
rpmdrake-b99b649e324c66a89e7696fe86a2984e7501d767.tar.gz
rpmdrake-b99b649e324c66a89e7696fe86a2984e7501d767.tar.bz2
rpmdrake-b99b649e324c66a89e7696fe86a2984e7501d767.tar.xz
rpmdrake-b99b649e324c66a89e7696fe86a2984e7501d767.zip
(build_tree) fix a test (needed for restoring by_source view)
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 0ee60667..bc34612f 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -852,7 +852,7 @@ or you already installed all of them."));
if (0 && $MODE eq 'update') {
add_node($_->[0], N("All")) foreach $sortmethods{flat}->(@elems);
$tree->expand_row($tree_model->get_path($tree_model->get_iter_first), 0);
- } elsif ($mode eq 'by_source') {
+ } elsif ($::mode->[0] eq 'by_source') {
add_node($_->[0], $_->[1]) foreach $sortmethods{by_medium}->(map {
my $m = pkg2medium($pkgs->{$_->[0]}{pkg}, $urpm); [ $_->[0], $m->{name}, $m->{priority} ];
} @elems);