aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-07 21:04:15 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-07 21:04:15 +0000
commita6a676d8d828621249b5d264606fada321f34c5b (patch)
tree483c8d8c42272506f2c50765a308f1d1a65c0b28 /Rpmdrake/gui.pm
parentfcb660b4fe426600623411d955f7f1901be2d917 (diff)
downloadrpmdrake-a6a676d8d828621249b5d264606fada321f34c5b.tar
rpmdrake-a6a676d8d828621249b5d264606fada321f34c5b.tar.gz
rpmdrake-a6a676d8d828621249b5d264606fada321f34c5b.tar.bz2
rpmdrake-a6a676d8d828621249b5d264606fada321f34c5b.tar.xz
rpmdrake-a6a676d8d828621249b5d264606fada321f34c5b.zip
(build_tree) prevent forking 2 useless shells while running
urpmi_rpm-find-leaves
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 706c16df..58990d6a 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -857,7 +857,8 @@ or you already installed all of them."));
by_leaves => sub {
# inlining part of MDK::Common::Data::difference2():
my %l; @l{map { $_->[0] } @_} = ();
- my $pkgs_times = 'rpm -q --qf "%{name}-%{version}-%{release}.%{arch} %{installtime}\n" `urpmi_rpm-find-leaves`';
+ my $pkgs_times = join(' ', 'rpm -q --qf "%{name}-%{version}-%{release}.%{arch} %{installtime}\n"',
+ map { chomp_($_) } run_program::get_stdout('urpmi_rpm-find-leaves'));
sort { $b->[1] <=> $a->[1] } grep { exists $l{$_->[0]} } map { chomp; [ split ] } run_rpm($pkgs_times);
},
flat => sub { no locale; sort { uc($a->[0]) cmp uc($b->[0]) } @_ },