summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ka_run.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-10 12:01:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-10 12:01:30 +0000
commit160f9e0f28624898448baae75c5cbd9716b9d790 (patch)
tree6cf6d5fccd52e4137e9dbddd6caa3ca30258c7db /urpm/parallel_ka_run.pm
parentd2d2dca3a708deef844317528bbb1152e1bbbc21 (diff)
downloadurpmi-160f9e0f28624898448baae75c5cbd9716b9d790.tar
urpmi-160f9e0f28624898448baae75c5cbd9716b9d790.tar.gz
urpmi-160f9e0f28624898448baae75c5cbd9716b9d790.tar.bz2
urpmi-160f9e0f28624898448baae75c5cbd9716b9d790.tar.xz
urpmi-160f9e0f28624898448baae75c5cbd9716b9d790.zip
create propagate_file() to be similar to parallel_ssh
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r--urpm/parallel_ka_run.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm
index d915e8c4..2c1ccad7 100644
--- a/urpm/parallel_ka_run.pm
+++ b/urpm/parallel_ka_run.pm
@@ -56,6 +56,11 @@ sub urpm_popen {
sub copy_to_dir { &_run_mput }
+sub propagate_file {
+ my ($parallel, $urpm, $file) = @_;
+ _run_mput($parallel, $urpm, $file, $file);
+}
+
sub _run_mput {
my ($parallel, $urpm, @para) = @_;
@@ -70,7 +75,7 @@ sub parallel_resolve_dependencies {
my ($parallel, $synthesis, $urpm, $state, $requested, %options) = @_;
#- first propagate the synthesis file to all machines
- _run_mput($parallel, $urpm, $synthesis, $synthesis);
+ propagate_file($parallel, $urpm, $synthesis);
$parallel->{synthesis} = $synthesis;