[前][次][番号順一覧][スレッド一覧]

ruby-changes:34448

From: kosaki <ko1@a...>
Date: Tue, 24 Jun 2014 05:53:26 +0900 (JST)
Subject: [ruby-changes:34448] kosaki:r46529 (trunk): * nacl/nacl-config.rb: Use File.exist? instead of executable?

kosaki	2014-06-24 05:53:16 +0900 (Tue, 24 Jun 2014)

  New Revision: 46529

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46529

  Log:
    * nacl/nacl-config.rb: Use File.exist? instead of executable?
      for irt_core. Recent nacl_sdk has non-executable irt_core.
      Patch by Shinichiro Hamaji.
      [Fixes GH-529] https://github.com/ruby/ruby/pull/529

  Modified files:
    trunk/ChangeLog
    trunk/nacl/nacl-config.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46528)
+++ ChangeLog	(revision 46529)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun 24 05:40:41 2014  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* nacl/nacl-config.rb: Use File.exist? instead of executable?
+	  for irt_core. Recent nacl_sdk has non-executable irt_core.
+	  Patch by Shinichiro Hamaji.
+	  [Fixes GH-529] https://github.com/ruby/ruby/pull/529
+
 Tue Jun 24 03:52:35 2014  NARUSE, Yui  <naruse@r...>
 
 	* lib/uri/mailto.rb: support RFC6068.
Index: nacl/nacl-config.rb
===================================================================
--- nacl/nacl-config.rb	(revision 46528)
+++ nacl/nacl-config.rb	(revision 46529)
@@ -34,7 +34,7 @@ module NaClConfig https://github.com/ruby/ruby/blob/trunk/nacl/nacl-config.rb#L34
   IRT_CORE = [
     File.join(SDK_ROOT, 'toolchain', config['NACL_TOOLCHAIN'], 'bin', "irt_core_#{cpu_nick}.nexe"),
     File.join(SDK_ROOT, 'tools', "irt_core_#{cpu_nick}.nexe")
-  ].find{|path| File.executable?(path)} or raise "No irt_core found"
+  ].find{|path| File.exist?(path)} or raise "No irt_core found"
   RUNNABLE_LD = File.join(HOST_LIB, 'runnable-ld.so')
 
   module_function

Property changes on: nacl/nacl-config.rb
___________________________________________________________________
Added: svn:executable
   + *


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]