diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-16 00:44:47 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-16 00:44:47 +0000 |
commit | e6882349c09d3fd7d01478dd378994502777a164 (patch) | |
tree | 6afbdb0a6998d199114ed130f7608a4e4c6f4bc4 /lib/rubygems/remote_fetcher.rb | |
parent | 164ced04de494d709f9006cac920579d84b6befd (diff) | |
download | ruby-e6882349c09d3fd7d01478dd378994502777a164.tar.gz |
* 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
Diffstat (limited to 'lib/rubygems/remote_fetcher.rb')
-rw-r--r-- | lib/rubygems/remote_fetcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |