1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems/remote_fetcher.rb (Gem::RemoteFetcher#download): should

use File.identical? to chech the identicality of the files.
  this fixed an error of a test on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-04-16 00:44:47 +00:00
parent 164ced04de
commit e6882349c0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Mon Apr 16 09:42:50 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/rubygems/remote_fetcher.rb (Gem::RemoteFetcher#download): should
use File.identical? to chech the identicality of the files.
this fixed an error of a test on Windows.
Sat Apr 14 12:55:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code

View file

@ -174,7 +174,7 @@ class Gem::RemoteFetcher
begin
FileUtils.cp source_path, local_gem_path unless
File.expand_path(source_path) == File.expand_path(local_gem_path)
File.identical?(source_path, local_gem_path)
rescue Errno::EACCES
local_gem_path = source_uri.to_s
end