From e6882349c09d3fd7d01478dd378994502777a164 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 16 Apr 2012 00:44:47 +0000 Subject: * 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 --- lib/rubygems/remote_fetcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index e0d12987f3..9363052052 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -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 -- cgit v1.2.3