diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-13 13:34:09 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-13 13:34:09 +0000 |
| commit | 6ce6d6f9640453f464de68f51b099bf3c2d15433 (patch) | |
| tree | 0d34d23adbb139802407a2548c9df6396b11cdeb /lib/fileutils.rb | |
| parent | 813d0ef7ad5ccb23b421ea74f942e12be5b2a356 (diff) | |
| download | ruby-6ce6d6f9640453f464de68f51b099bf3c2d15433.tar.gz ruby-6ce6d6f9640453f464de68f51b099bf3c2d15433.tar.xz ruby-6ce6d6f9640453f464de68f51b099bf3c2d15433.zip | |
* lib/fileutils.rb (FileUtils.cp_r): dereference_root=true is default in Ruby 1.8. This line is wrongly removed in last commit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
| -rw-r--r-- | lib/fileutils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 902d92553..9aea507a1 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -418,6 +418,7 @@ module FileUtils fu_check_options options, OPT_TABLE['cp_r'] fu_output_message "cp -r#{options[:preserve] ? 'p' : ''}#{options[:remove_destination] ? ' --remove-destination' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose] return if options[:noop] + options[:dereference_root] = true unless options.key?(:dereference_root) fu_each_src_dest(src, dest) do |s, d| copy_entry s, d, options[:preserve], options[:dereference_root], options[:remove_destination] end |
