From 8289771e326006cc4e15a667e3eff3a72cfb3327 Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 20 Dec 2007 08:39:12 +0000 Subject: Import RubyGems 1.0.0, r1575 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/source_info_cache.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rubygems/source_info_cache.rb') diff --git a/lib/rubygems/source_info_cache.rb b/lib/rubygems/source_info_cache.rb index 0498e895a4..c84868a5f5 100644 --- a/lib/rubygems/source_info_cache.rb +++ b/lib/rubygems/source_info_cache.rb @@ -176,7 +176,7 @@ class Gem::SourceInfoCache # The name of the system cache file. (class method) def self.system_cache_file - @system_cache_file ||= File.join(Gem.dir, "source_cache") + @system_cache_file ||= Gem.default_system_source_cache_dir end # The name of the user cache file. @@ -187,7 +187,7 @@ class Gem::SourceInfoCache # The name of the user cache file. (class method) def self.user_cache_file @user_cache_file ||= - ENV['GEMCACHE'] || File.join(Gem.user_home, ".gem", "source_cache") + ENV['GEMCACHE'] || Gem.default_user_source_cache_dir end # Write data to the proper cache. @@ -217,7 +217,7 @@ class Gem::SourceInfoCache unless File.exist? dir then begin FileUtils.mkdir_p(dir) - rescue RuntimeError + rescue RuntimeError, SystemCallError return nil end end -- cgit v1.2.3