diff --git a/ChangeLog b/ChangeLog index 9bbdc62e75..e0a72d325b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 16 09:42:50 2012 NAKAMURA Usaku + + * 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 * configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code 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