From db7e0e3922516d5bba7f28e06bb4fd5485d72363 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 17 Nov 2005 10:54:36 +0000 Subject: Use taktuk2 instead of ka if available. Make it overriable with the URPMI_MPUT_COMMAND and URPMI_RSHP_COMMAND environment variables. --- urpm/parallel_ka_run.pm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'urpm') 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 { -- cgit v1.2.1