diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-09 22:04:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-09 22:04:46 +0000 |
commit | fa946e0272248bf7b416a37e6ab4a28cf31fa782 (patch) | |
tree | c23c6bc9d3a1647e1504e76ad8ed40b6d0f2e594 /urpm/parallel_ka_run.pm | |
parent | 046076673304e01e3c04b3fe34723b7efbcb161c (diff) | |
download | urpmi-fa946e0272248bf7b416a37e6ab4a28cf31fa782.tar urpmi-fa946e0272248bf7b416a37e6ab4a28cf31fa782.tar.gz urpmi-fa946e0272248bf7b416a37e6ab4a28cf31fa782.tar.bz2 urpmi-fa946e0272248bf7b416a37e6ab4a28cf31fa782.tar.xz urpmi-fa946e0272248bf7b416a37e6ab4a28cf31fa782.zip |
replace _rshp_command() with the more specialized _rshp_urpm()
(which takes care of --no-locales)
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r-- | urpm/parallel_ka_run.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm index cdc5b3bf..842d713f 100644 --- a/urpm/parallel_ka_run.pm +++ b/urpm/parallel_ka_run.pm @@ -25,12 +25,12 @@ if (!$rshp_command) { } $rshp_command ||= 'rshp'; -sub _rshp_command { - my ($urpm, $parallel, $rshp_option, $para) = @_; +sub _rshp_urpm { + my ($urpm, $parallel, $rshp_option, $cmd, $para) = @_; - my $cmd = "$rshp_command $rshp_option $parallel->{options} -- $para"; - $urpm->{log}("parallel_ka_run: $cmd"); - $cmd; + my $command = "$rshp_command $rshp_option $parallel->{options} -- $cmd --no-locales $para"; + $urpm->{log}("parallel_ka_run: $command"); + $command; } sub _run_mput { @@ -61,7 +61,7 @@ sub parallel_find_remove { my (%bad_nodes, %base_to_remove, %notfound); #- now try an iteration of urpme. - my $command = _rshp_command($urpm, $parallel, "-v", "urpme --no-locales --auto $test" . join(' ', map { "'$_'" } @$l)); + my $command = _rshp_urpm($urpm, $parallel, "-v", 'urpme', "--auto $test" . join(' ', map { "'$_'" } @$l)); open my $fh, "$command 2>&1 |"; while (my $s = <$fh>) { @@ -112,7 +112,7 @@ sub parallel_resolve_dependencies { #- the following state should be cleaned for each iteration. delete $state->{selected}; #- now try an iteration of urpmq. - open my $fh, _rshp_command($urpm, $parallel, "-v", "urpmq --synthesis $synthesis -fduc $line " . join(' ', keys %chosen)) . " |"; + open my $fh, _rshp_urpm($urpm, $parallel, "-v", 'urpmq', "--synthesis $synthesis -fduc $line " . join(' ', keys %chosen)) . " |"; while (my $s = <$fh>) { my ($node, $s_) = _parse_rshp_output($s) or next; urpm::parallel::parse_urpmq_output($urpm, $state, $node, $s_, \$cont, \%chosen, %options); @@ -134,7 +134,7 @@ sub parallel_install { $? == 0 || $? == 256 or $urpm->{fatal}(1, N("mput failed, maybe a node is unreacheable")); my (%bad_nodes); - open my $fh, _rshp_command($urpm, $parallel, "-v", "urpmi --pre-clean --no-locales --test --no-verify-rpm --auto --synthesis $parallel->{synthesis} $parallel->{line}") . ' |'; + open my $fh, _rshp_urpm($urpm, $parallel, "-v", 'urpmi', "--pre-clean --test --no-verify-rpm --auto --synthesis $parallel->{synthesis} $parallel->{line}") . ' |'; while (my $s_ = <$fh>) { chomp $s_; my ($node, $s) = _parse_rshp_output($s_) or next; @@ -157,7 +157,7 @@ sub parallel_install { } else { my $line = $parallel->{line} . ($options{excludepath} ? " --excludepath '$options{excludepath}'" : ""); #- continue installation. - system(_rshp_command($urpm, $parallel, '', "urpmi --no-locales --no-verify-rpm --auto --synthesis $parallel->{synthesis} $line")) == 0; + system(_rshp_urpm($urpm, $parallel, '', 'urpmi', "--no-verify-rpm --auto --synthesis $parallel->{synthesis} $line")) == 0; } } |