diff options
author | Francois Pons <fpons@mandriva.com> | 2002-09-11 14:15:51 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-09-11 14:15:51 +0000 |
commit | c48a497cf0700250f71b5e1a722d87d13003d150 (patch) | |
tree | 1f31bf849d0f6855dab4a072913cebdf6c3d21d0 /urpm/parallel_ka_run.pm | |
parent | c1e99ee90bca346cf2a31259c3cfe8c66088a43e (diff) | |
download | urpmi-c48a497cf0700250f71b5e1a722d87d13003d150.tar urpmi-c48a497cf0700250f71b5e1a722d87d13003d150.tar.gz urpmi-c48a497cf0700250f71b5e1a722d87d13003d150.tar.bz2 urpmi-c48a497cf0700250f71b5e1a722d87d13003d150.tar.xz urpmi-c48a497cf0700250f71b5e1a722d87d13003d150.zip |
4.0-17mdk
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r-- | urpm/parallel_ka_run.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm index aac79dff..f1d1f775 100644 --- a/urpm/parallel_ka_run.pm +++ b/urpm/parallel_ka_run.pm @@ -93,11 +93,8 @@ sub parallel_resolve_dependencies { sub parallel_install { my ($parallel, $urpm, $remove, $install, $upgrade) = @_; - foreach (values %$install, values %$upgrade) { - my ($basename) = /([^\/]*)$/; - $urpm->{log}("parallel_ka_run: mput $parallel->{options} -- '$_' $urpm->{cachedir}/rpms/$basename"); - system "mput $parallel->{options} -- '$_' $urpm->{cachedir}/rpms/$basename"; - } + $urpm->{log}("parallel_ka_run: mput $parallel->{options} -- ".join(' ', values %$install, values %$upgrade)." $urpm->{cachedir}/rpms/"); + system "mput", split(' ', $parallel->{options}), '--', values %$install, values %$upgrade, "$urpm->{cachedir}/rpms/"; local (*F, $_); my ($node, %bad_nodes); |