diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 08:39:12 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 08:39:12 +0000 |
commit | 8289771e326006cc4e15a667e3eff3a72cfb3327 (patch) | |
tree | f6d367888b42848fd6a660fad57fa2020e38c097 /lib/rubygems/source_info_cache.rb | |
parent | 40d8543fbdec5485a638a2cb1008089d106b978d (diff) |
Import RubyGems 1.0.0, r1575
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/source_info_cache.rb')
-rw-r--r-- | lib/rubygems/source_info_cache.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |