[macruby-changes] [4117] MacRuby/trunk/lib/fileutils.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 17 19:37:28 PDT 2010
Revision: 4117
http://trac.macosforge.org/projects/ruby/changeset/4117
Author: martinlagardette at apple.com
Date: 2010-05-17 19:37:23 -0700 (Mon, 17 May 2010)
Log Message:
-----------
Re-fix fileutils which sometimes hanged when installing binary
Modified Paths:
--------------
MacRuby/trunk/lib/fileutils.rb
Modified: MacRuby/trunk/lib/fileutils.rb
===================================================================
--- MacRuby/trunk/lib/fileutils.rb 2010-05-18 02:14:36 UTC (rev 4116)
+++ MacRuby/trunk/lib/fileutils.rb 2010-05-18 02:37:23 UTC (rev 4117)
@@ -1274,11 +1274,13 @@
end
def copy_file(dest)
- File.open(path()) do |s|
- File.open(dest, 'wb') do |f|
- IO.copy_stream(s, f)
- end
- end
+ IO.copy_stream(path(), dest)
+ # XXX This hangs using a lot of CPU in MacRuby
+ # File.open(path()) do |s|
+ # File.open(dest, 'wb') do |f|
+ # IO.copy_stream(s, f)
+ # end
+ # end
end
def copy_metadata(path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100517/c4c5b579/attachment.html>
More information about the macruby-changes
mailing list