summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/parallel_ka_run.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm
index bbb5d3c0..c9141b18 100644
--- a/urpm/parallel_ka_run.pm
+++ b/urpm/parallel_ka_run.pm
@@ -3,8 +3,17 @@ package urpm::parallel_ka_run;
use strict;
(our $VERSION) = q$Id$ =~ /(\d+\.\d+)/;
-our $mput_command = 'mput';
-our $rshp_command = 'rshp';
+our $mput_command = $ENV{URPMI_MPUT_COMMAND};
+our $rshp_command = $ENV{URPMI_RSHP_COMMAND};
+
+if (!$mput_command) {
+ $mput_command = grep -x, qw(/usr/bin/mput2 /usr/bin/mput);
+}
+$mput_command = 'mput' unless $mput_command;
+if (!$rshp_command) {
+ $rshp_command = grep -x, qw(/usr/bin/rshp2 /usr/bin/rshp);
+}
+$rshp_command = 'rshp' unless $rshp_command;
#- parallel copy
sub parallel_register_rpms {