summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ka_run.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 19:45:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 19:45:02 +0000
commit277bf689677a7b5c4305038fc276c4ee678e3aab (patch)
treee2a83438fa18cba93b39ad2c250c9bf2df356b6e /urpm/parallel_ka_run.pm
parent415fad3bdb942c9a20e5888636184cd73ddda1b5 (diff)
downloadurpmi-277bf689677a7b5c4305038fc276c4ee678e3aab.tar
urpmi-277bf689677a7b5c4305038fc276c4ee678e3aab.tar.gz
urpmi-277bf689677a7b5c4305038fc276c4ee678e3aab.tar.bz2
urpmi-277bf689677a7b5c4305038fc276c4ee678e3aab.tar.xz
urpmi-277bf689677a7b5c4305038fc276c4ee678e3aab.zip
remove ugly duplication
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r--urpm/parallel_ka_run.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm
index 2496a917..c81f3780 100644
--- a/urpm/parallel_ka_run.pm
+++ b/urpm/parallel_ka_run.pm
@@ -46,8 +46,9 @@ sub parallel_find_remove {
my (%bad_nodes, %base_to_remove, %notfound);
#- now try an iteration of urpme.
- $urpm->{log}("parallel_ka_run: $rshp_command -v $parallel->{options} -- urpme --no-locales --auto $test" . (join ' ', map { "'$_'" } @$l));
- open my $fh, "$rshp_command -v $parallel->{options} -- urpme --no-locales --auto $test" . join(' ', map { "'$_'" } @$l) . " 2>&1 |";
+ my $command = "$rshp_command -v $parallel->{options} -- urpme --no-locales --auto $test" . join(' ', map { "'$_'" } @$l);
+ $urpm->{log}("parallel_ka_run: $command");
+ open my $fh, "$command 2>&1 |";
while (my $s = <$fh>) {
my ($node, $s_) = _parse_rshp_output($_) or next;