* 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:
parent
164ced04de
commit
e6882349c0
@ -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>
|
Sat Apr 14 12:55:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
|
* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
|
||||||
|
@ -174,7 +174,7 @@ class Gem::RemoteFetcher
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
FileUtils.cp source_path, local_gem_path unless
|
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
|
rescue Errno::EACCES
|
||||||
local_gem_path = source_uri.to_s
|
local_gem_path = source_uri.to_s
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user