[macruby-changes] [961] MacRuby/branches/experimental/lib/fileutils.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 17 15:46:33 PDT 2009
Revision: 961
http://trac.macosforge.org/projects/ruby/changeset/961
Author: eloy.de.enige at gmail.com
Date: 2009-03-17 15:46:33 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
Reverted change to fileutils.
Modified Paths:
--------------
MacRuby/branches/experimental/lib/fileutils.rb
Modified: MacRuby/branches/experimental/lib/fileutils.rb
===================================================================
--- MacRuby/branches/experimental/lib/fileutils.rb 2009-03-17 22:43:20 UTC (rev 960)
+++ MacRuby/branches/experimental/lib/fileutils.rb 2009-03-17 22:46:33 UTC (rev 961)
@@ -196,7 +196,7 @@
fu_check_options options, OPT_TABLE['mkdir_p']
list = fu_list(list)
fu_output_message "mkdir -p #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
- return list if options[:noop]
+ return *list if options[:noop]
list.map {|path| path.sub(%r</\z>, '') }.each do |path|
# optimize for the most common case
@@ -208,7 +208,7 @@
end
stack = []
- while path != stack.last # dirname("/")=="/", dirname("C:/")=="C:/"
+ until path == stack.last # dirname("/")=="/", dirname("C:/")=="C:/"
stack.push path
path = File.dirname(path)
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/700d7a82/attachment-0001.html>
More information about the macruby-changes
mailing list