ruby-changes:27583
From: nobu <ko1@a...>
Date: Fri, 8 Mar 2013 14:25:11 +0900 (JST)
Subject: [ruby-changes:27583] nobu:r39635 (trunk): * tool/rbuninstall.rb: remove symlinks.
nobu 2013-03-08 14:24:23 +0900 (Fri, 08 Mar 2013) New Revision: 39635 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39635 Log: * tool/rbuninstall.rb: remove symlinks. Modified files: trunk/tool/rbuninstall.rb Index: tool/rbuninstall.rb =================================================================== --- tool/rbuninstall.rb (revision 39634) +++ tool/rbuninstall.rb (revision 39635) @@ -39,7 +39,12 @@ END { https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L39 end $dirs.reverse_each do |dir| begin - Dir.rmdir(dir) + begin + Dir.rmdir(dir) + rescue Errno::ENOTDIR + raise unless File.symlink?(dir) + File.unlink(dir) + end rescue Errno::ENOENT, Errno::ENOTEMPTY rescue status = false -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/