summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ka_run.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-12-03 14:43:51 +0000
committerFrancois Pons <fpons@mandriva.com>2002-12-03 14:43:51 +0000
commit2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe (patch)
tree7326808e4a91fb78b485e5686a4e2f93804ab9d4 /urpm/parallel_ka_run.pm
parentc2f88b824c74e11c644bd34ca29ff4a3a216ede9 (diff)
downloadurpmi-2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe.tar
urpmi-2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe.tar.gz
urpmi-2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe.tar.bz2
urpmi-2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe.tar.xz
urpmi-2e05a0de40d1d5722b1b5dc50e6f59c1f6cbcfbe.zip
4.1-8mdk
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r--urpm/parallel_ka_run.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm
index 4d44e2ac..10f29d66 100644
--- a/urpm/parallel_ka_run.pm
+++ b/urpm/parallel_ka_run.pm
@@ -91,7 +91,7 @@ sub parallel_resolve_dependencies {
#- parallel install.
sub parallel_install {
- my ($parallel, $urpm, $remove, $install, $upgrade) = @_;
+ my ($parallel, $urpm, $remove, $install, $upgrade, %options) = @_;
$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/";
@@ -116,9 +116,15 @@ sub parallel_install {
}
%bad_nodes and return;
- #- continue installation.
- $urpm->{log}("parallel_ka_run: rshp $parallel->{options} -- urpmi --no-locales --no-verify-rpm --auto --synthesis $parallel->{synthesis} $parallel->{line}");
- system("rshp $parallel->{options} -- urpmi --no-locales --no-verify-rpm --auto --synthesis $parallel->{synthesis} $parallel->{line}") == 0;
+ if ($options{test}) {
+ $urpm->{error}(_("Installation is possible"));
+ 1;
+ } else {
+ my $line = $parallel->{line} . ($options{excludepath} && " --excludepath '$options{excludepath}'");
+ #- continue installation.
+ $urpm->{log}("parallel_ka_run: rshp $parallel->{options} -- urpmi --no-locales --no-verify-rpm --auto --synthesis $parallel->{synthesis} $line");
+ system("rshp $parallel->{options} -- urpmi --no-locales --no-verify-rpm --auto --synthesis $parallel->{synthesis} $line") == 0;
+ }
}