aboutsummaryrefslogtreecommitdiffstats
path: root/find-provides.in
diff options
context:
space:
mode:
authorFunda Wang <fwang@mageia.org>2012-09-08 09:52:35 +0000
committerFunda Wang <fwang@mageia.org>2012-09-08 09:52:35 +0000
commit62cde8e3f1282f217b17877fa1cbc68a98a0d627 (patch)
treea1483ca14ea2bb87e4a1bdf020b2bfd5b0e77e77 /find-provides.in
parentb8ba2124bc80b5e173e2846ef16e10b545f198ab (diff)
downloadrpm-setup-62cde8e3f1282f217b17877fa1cbc68a98a0d627.tar
rpm-setup-62cde8e3f1282f217b17877fa1cbc68a98a0d627.tar.gz
rpm-setup-62cde8e3f1282f217b17877fa1cbc68a98a0d627.tar.bz2
rpm-setup-62cde8e3f1282f217b17877fa1cbc68a98a0d627.tar.xz
rpm-setup-62cde8e3f1282f217b17877fa1cbc68a98a0d627.zip
1.158: only enable rubygems when /usr/bin/ruby is found1.158
Diffstat (limited to 'find-provides.in')
-rwxr-xr-xfind-provides.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-provides.in b/find-provides.in
index df7bfb7..eedf40c 100755
--- a/find-provides.in
+++ b/find-provides.in
@@ -127,7 +127,7 @@ fi
#
# --- Ruby gems
-[ -x @RPMVENDORDIR@/rubygems.rb -a -n "$rubygemlist" ] &&
+[ -x /usr/bin/ruby -a -x @RPMVENDORDIR@/rubygems.rb -a -n "$rubygemlist" ] &&
echo $rubygemlist | tr '[:blank:]' \\n | @RPMVENDORDIR@/rubygems.rb --provides | sort -u \
&& test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMVENDORDIR@/rubygems.rb failed' >&2 && exit 1