From e326045afc62ca73b762a5a1f1128a1b5bc64c60 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Apr 2017 14:54:59 +0000 Subject: rbinstall.rb: ignore skipped exts * tool/rbinstall.rb (default-gems): skip gemspec if corresponding Makefile does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 9c0a4fa1ff..0f4804c94d 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -699,9 +699,14 @@ end install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do install_default_gem('ext', srcdir) do |path| # assume that gemspec and extconf.rb are placed in the same directory - IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l| - break true if /^TARGET\s*=/ =~ l + success = false + begin + IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l| + break success = true if /^TARGET\s*=/ =~ l + end + rescue Errno::ENOENT end + success end end -- cgit v1.2.3