Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix --destdir for windows.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1793 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
commit 610a0592c77f62c0d273ff745ecb903f1aa95d06 1 parent 505f81e
drbrain authored
Showing with 5 additions and 1 deletion.
  1. +1 −0  ChangeLog
  2. +4 −1 setup.rb
View
1  ChangeLog
@@ -4,6 +4,7 @@
Roll back specification version change.
* lib/rubygems/remote_fetcher.rb: Reset connection when an HTTP
server misbehaves.
+ * setup.rb: Fix --destdir for windows.
2008-06-20 Eric Hodel <drbrain@segment7.net>
View
5 setup.rb
@@ -90,7 +90,10 @@
end
end
-ENV['GEM_HOME'] ||= install_destdir + Gem.default_dir
+unless install_destdir.empty? then
+ ENV['GEM_HOME'] ||= File.join(install_destdir,
+ Gem.default_dir.sub(/\A[a-z]:/i, ''))
+end
require 'fileutils'
require 'rbconfig'
Please sign in to comment.
Something went wrong with that request. Please try again.