diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-19 13:03:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-19 13:03:41 +0000 |
commit | 4e9e95c0118162c5a2ae89f26b6102d3b4946998 (patch) | |
tree | 523c34312b740bcfa00632f53e3f6ae35c78287c /Rpmdrake | |
parent | 0db87951211506283484ff8512bf1819869d6f29 (diff) | |
download | rpmdrake-4e9e95c0118162c5a2ae89f26b6102d3b4946998.tar rpmdrake-4e9e95c0118162c5a2ae89f26b6102d3b4946998.tar.gz rpmdrake-4e9e95c0118162c5a2ae89f26b6102d3b4946998.tar.bz2 rpmdrake-4e9e95c0118162c5a2ae89f26b6102d3b4946998.tar.xz rpmdrake-4e9e95c0118162c5a2ae89f26b6102d3b4946998.zip |
(build_tree) restore sorting packages in 'by_group' view ; regression
introduced in r239885 on 2008-03-17:
"(build_tree,run_treeview_dialog) do the sort when filling in the tree
in "by_group" mode rather than setting it as a tree propriety (needed
before resurecting flat mode)"
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 9f57701e..0ee60667 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -833,7 +833,7 @@ or you already installed all of them.")); $explanation_only_once = 1; } } - @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } @keys; + @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } sort @keys; } my %sortmethods = ( by_size => sub { sort { $pkgs->{$b->[0]}{pkg}->size <=> $pkgs->{$a->[0]}{pkg}->size } @_ }, @@ -865,7 +865,7 @@ or you already installed all of them.")); #- we populate all the groups tree at first %$elems = (); # better loop on packages, create groups tree and push packages in the proper place: - foreach my $pkg (sort @elems) { + foreach my $pkg (@elems) { my $grp = $pkg->[1]; add_parent($grp); $elems->{$grp} ||= []; |