summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-21 23:23:34 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-21 23:23:34 +0000
commitb0f22011cd091ff90d3b9636edead943c6c67b12 (patch)
tree8fcf20c0fc6a2b51f07016bbd6203e94d325b727 /urpm
parentcc6cf3352215ba8287ff915fae554843c9de815b (diff)
downloadurpmi-b0f22011cd091ff90d3b9636edead943c6c67b12.tar
urpmi-b0f22011cd091ff90d3b9636edead943c6c67b12.tar.gz
urpmi-b0f22011cd091ff90d3b9636edead943c6c67b12.tar.bz2
urpmi-b0f22011cd091ff90d3b9636edead943c6c67b12.tar.xz
urpmi-b0f22011cd091ff90d3b9636edead943c6c67b12.zip
use "find" instead of "grep" in scalar context
Diffstat (limited to 'urpm')
-rw-r--r--urpm/parallel_ka_run.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm
index cd3925e0..e28c962b 100644
--- a/urpm/parallel_ka_run.pm
+++ b/urpm/parallel_ka_run.pm
@@ -16,11 +16,11 @@ 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) = find { -x $_ } qw(/usr/bin/mput2 /usr/bin/mput);
}
$mput_command ||= 'mput';
if (!$rshp_command) {
- ($rshp_command) = grep { -x $_ } qw(/usr/bin/rshp2 /usr/bin/rshp);
+ ($rshp_command) = find { -x $_ } qw(/usr/bin/rshp2 /usr/bin/rshp);
}
$rshp_command ||= 'rshp';