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

ruby-changes:43420

From: nobu <ko1@a...>
Date: Fri, 24 Jun 2016 09:23:50 +0900 (JST)
Subject: [ruby-changes:43420] nobu:r55494 (trunk): touch

nobu	2016-06-24 09:23:46 +0900 (Fri, 24 Jun 2016)

  New Revision: 55494

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

  Log:
    touch
    
    * enc/unicode/case-folding.rb: touch the destination file.

  Modified files:
    trunk/enc/unicode/case-folding.rb
Index: enc/unicode/case-folding.rb
===================================================================
--- enc/unicode/case-folding.rb	(revision 55493)
+++ enc/unicode/case-folding.rb	(revision 55494)
@@ -370,7 +370,9 @@ if $0 == __FILE__ https://github.com/ruby/ruby/blob/trunk/enc/unicode/case-folding.rb#L370
   rescue Errno::ENOENT => e
     raise unless /gperf/ =~ e.message
     warn e.message
-    exit dest && File.file?(dest) # assume existing file is OK
+    abort unless dest
+    File.utime(nil, nil, dest) # assume existing file is OK
+    exit
   else
     s = f.string
   end

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

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