Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 2 changed files with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 0  ChangeLog
  2. +4 1 setup.rb
1  ChangeLog
@@ -4,6 +4,7 @@
4 4 Roll back specification version change.
5 5 * lib/rubygems/remote_fetcher.rb: Reset connection when an HTTP
6 6 server misbehaves.
  7 + * setup.rb: Fix --destdir for windows.
7 8
8 9 2008-06-20 Eric Hodel <drbrain@segment7.net>
9 10
5 setup.rb
@@ -90,7 +90,10 @@
90 90 end
91 91 end
92 92
93   -ENV['GEM_HOME'] ||= install_destdir + Gem.default_dir
  93 +unless install_destdir.empty? then
  94 + ENV['GEM_HOME'] ||= File.join(install_destdir,
  95 + Gem.default_dir.sub(/\A[a-z]:/i, ''))
  96 +end
94 97
95 98 require 'fileutils'
96 99 require 'rbconfig'

0 comments on commit 610a059

Please sign in to comment.
Something went wrong with that request. Please try again.