aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-17 17:22:49 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-17 17:22:49 +0000
commit15c74c0fcb1f119c58a24f12193682251f494ff6 (patch)
treee29efd45c4a4dedb357f044d1217973f29029850 /Rpmdrake
parent5aa5a10d9bfce29570d4765cf646da8762efc418 (diff)
downloadrpmdrake-15c74c0fcb1f119c58a24f12193682251f494ff6.tar
rpmdrake-15c74c0fcb1f119c58a24f12193682251f494ff6.tar.gz
rpmdrake-15c74c0fcb1f119c58a24f12193682251f494ff6.tar.bz2
rpmdrake-15c74c0fcb1f119c58a24f12193682251f494ff6.tar.xz
rpmdrake-15c74c0fcb1f119c58a24f12193682251f494ff6.zip
(build_tree) sort packages the same way when browsing groups
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 428085c5..d578b887 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -993,7 +993,8 @@ or you already installed all of them."));
$explanation_only_once = 1;
}
}
- @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } sort @keys;
+ # FIXME: better do this on first group access for faster startup...
+ @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } sort_packages(@keys);
}
my %sortmethods = (
by_size => sub { sort { $pkgs->{$b->[0]}{pkg}->size <=> $pkgs->{$a->[0]}{pkg}->size } @_ },