aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-21 14:28:55 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-21 14:28:55 +0000
commit41b0e980951a7f160f685fa124af6471da874c4c (patch)
tree95be7b3e8ebb97ccb8089f365a2abb14bab163a8 /Rpmdrake/pkg.pm
parentb83d78758ad2a42698695f860fd983bce3c10b4c (diff)
downloadrpmdrake-41b0e980951a7f160f685fa124af6471da874c4c.tar
rpmdrake-41b0e980951a7f160f685fa124af6471da874c4c.tar.gz
rpmdrake-41b0e980951a7f160f685fa124af6471da874c4c.tar.bz2
rpmdrake-41b0e980951a7f160f685fa124af6471da874c4c.tar.xz
rpmdrake-41b0e980951a7f160f685fa124af6471da874c4c.zip
(perform_parallel_install) simplify
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index cba39f08..6a5a4716 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -522,11 +522,9 @@ sub display_READMEs_if_needed {
sub perform_parallel_install {
my ($urpm, $group, $w, $statusbar_msg_id) = @_;
my @pkgs = map { if_($_->flag_requested, urpm_name($_)) } @{$urpm->{depslist}};
- my $temp = chomp_(`mktemp /tmp/rpmdrake.XXXXXXXX`);
- -e $temp or die N("Could not create temporary directory '%s'", $temp);
- my $res = !run_program::run('urpmi', '2>', $temp, '-v', '--X', '--parallel', $group, @pkgs);
- my @error_msgs = cat_($temp);
+ my @error_msgs;
+ my $res = !run_program::run('urpmi', '2>', \@error_msgs, '-v', '--X', '--parallel', $group, @pkgs);
if ($res) {
$$statusbar_msg_id = statusbar_msg(