From 62cde8e3f1282f217b17877fa1cbc68a98a0d627 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sat, 8 Sep 2012 09:52:35 +0000 Subject: 1.158: only enable rubygems when /usr/bin/ruby is found --- find-requires.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'find-requires.in') diff --git a/find-requires.in b/find-requires.in index 4c8c2c9..4ddbf59 100755 --- a/find-requires.in +++ b/find-requires.in @@ -271,7 +271,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 --requires | sort -u \ && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMVENDORDIR@/rubygems.rb failed' >&2 && exit 1 -- cgit v1.2.1