diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-17 21:07:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-17 21:07:51 +0000 |
commit | 78538fce01546795f0ba5776e2fa63a7353ed428 (patch) | |
tree | 2964d61939de5c6226bd6247e91df7055c1e583e | |
parent | d064f42223c79eb30befe9f5c6700f0b4e1105a5 (diff) | |
download | rpmdrake-78538fce01546795f0ba5776e2fa63a7353ed428.tar rpmdrake-78538fce01546795f0ba5776e2fa63a7353ed428.tar.gz rpmdrake-78538fce01546795f0ba5776e2fa63a7353ed428.tar.bz2 rpmdrake-78538fce01546795f0ba5776e2fa63a7353ed428.tar.xz rpmdrake-78538fce01546795f0ba5776e2fa63a7353ed428.zip |
(build_tree) fix "by_leaves" filter by chomp()ing readed lines
-rw-r--r-- | Rpmdrake/gui.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 482c1ef5..fa211588 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -841,7 +841,7 @@ or you already installed all of them.")); || uc($a->[0]) cmp uc($b->[0]) } @_ }, by_leaves => sub { my $pkgs_times = 'rpm -q --qf "%{name}-%{version}-%{release}.%{arch} %{installtime}\n" `urpmi_rpm-find-leaves`'; - sort { $b->[1] <=> $a->[1] } grep { exists $pkgs->{$_->[0]} } map { [ split ] } run_rpm($pkgs_times); + sort { $b->[1] <=> $a->[1] } grep { exists $pkgs->{$_->[0]} } map { chomp; [ split ] } run_rpm($pkgs_times); }, flat => sub { no locale; sort { uc($a->[0]) cmp uc($b->[0]) } @_ }, by_medium => sub { sort { $a->[2] <=> $b->[2] || uc($a->[0]) cmp uc($b->[0]) } @_ }, |