summaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-04 13:36:46 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-04 13:36:46 +0000
commita70a9172a663b0ef32ada4e4ea54017d5ca7325b (patch)
tree2322d7037d2302705345c6b0a52baa9f37a20ddc /lib/rubygems.rb
parent1b091e34b1cd38c0f9f7c88c95094e3182e53288 (diff)
merges r20085 from trunk into ruby_1_9_1.
* Don't require rubygems/defaults from gem_prelude.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index e85d97c00..9913b59ce 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -718,6 +718,7 @@ module Gem
@gem_path.uniq!
@gem_path.each do |path|
if 0 == File.expand_path(path).index(Gem.user_home)
+ next unless File.directory? Gem.user_home
unless win_platform? then
# only create by matching user
next if Etc.getpwuid.uid != File::Stat.new(Gem.user_home).uid