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

ruby-changes:28029

From: akr <ko1@a...>
Date: Wed, 3 Apr 2013 20:28:25 +0900 (JST)
Subject: [ruby-changes:28029] akr:r40081 (trunk): * ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure

akr	2013-04-03 20:28:10 +0900 (Wed, 03 Apr 2013)

  New Revision: 40081

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

  Log:
    * ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
      clause.

  Modified files:
    trunk/ChangeLog
    trunk/ext/extmk.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40080)
+++ ChangeLog	(revision 40081)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr  3 20:27:37 2013  Tanaka Akira  <akr@f...>
+
+	* ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
+	  clause.
+
 Wed Apr  3 18:53:58 2013  Tanaka Akira  <akr@f...>
 
 	* ext/extmk.rb (extmake): Use Logging.open to switch stdout and
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 40080)
+++ ext/extmk.rb	(revision 40081)
@@ -230,10 +230,8 @@ def extmake(target) https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L230
       Logging::message(mess) if Logging.log_opened?
       print(mess)
       $stdout.flush
-      Logging::log_close
       return true
     end
-    Logging::log_close
     args = sysquote($mflags)
     unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
       args += [sysquote("DESTDIR=" + relative_from($destdir, "../"+prefix))]
@@ -265,6 +263,7 @@ def extmake(target) https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L263
       $extpath |= $LIBPATH
     end
   ensure
+    Logging::log_close
     unless $ignore
       RbConfig.module_eval {
 	remove_const(:CONFIG)

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

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