Permalink
Browse files

Bug #20746.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1791 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
drbrain
drbrain committed Jun 20, 2008
1 parent e784980 commit a1f323fb01fe0d3cd78f8016f84872528fa8b534
Showing with 3 additions and 5 deletions.
  1. +2 −0 ChangeLog
  2. +1 −5 lib/rubygems/commands/install_command.rb
View
@@ -4,6 +4,8 @@
isn't found. Bug #20746 reported by Chad Wooley.
* setup.rb: Fix rdoc installation with --destdir. Patch #20739 by
Matthew Kent.
+ * lib/rubygems/commands/install_command.rb: Don't reset GEM_PATH when
+ installing. Fixes Bug #20746 by Chad Wooley.
2008-06-20 Luis Lavena <luislavena@gmail.com>
@@ -50,11 +50,7 @@ def execute
installed_gems = []
- if options[:install_dir].nil? and RUBY_VERSION > '1.9' then
- ENV.delete 'GEM_PATH'
- else
- ENV['GEM_PATH'] = options[:install_dir] # HACK what does this do?
- end
+ ENV.delete 'GEM_PATH' if options[:install_dir].nil? and RUBY_VERSION > '1.9'
install_options = {
:env_shebang => options[:env_shebang],

0 comments on commit a1f323f

Please sign in to comment.