ruby-changes:27686
From: nobu <ko1@a...>
Date: Wed, 13 Mar 2013 11:09:34 +0900 (JST)
Subject: [ruby-changes:27686] nobu:r39738 (trunk): rbuninstall.rb: fix for symlink to directory
nobu 2013-03-13 11:09:18 +0900 (Wed, 13 Mar 2013) New Revision: 39738 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39738 Log: rbuninstall.rb: fix for symlink to directory * tool/rbuninstall.rb: fix for symlink to directory by removing trailing slash which let File.symlink? return false. Modified files: trunk/tool/rbuninstall.rb Index: tool/rbuninstall.rb =================================================================== --- tool/rbuninstall.rb (revision 39737) +++ tool/rbuninstall.rb (revision 39738) @@ -15,7 +15,7 @@ BEGIN { https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L15 $dirs = [] $files = [] } -list = (/\/\z/ =~ $_ ? $dirs : $files) +list = ($_.chomp!('/') ? $dirs : $files) $_ = File.join($destdir, $_) if $destdir list << $_ END { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/