On Tue, Mar 25, 2008 at 11:19 PM, Eric Hodel <[EMAIL PROTECTED]> wrote:
>
>  Will this patch work?
>
>  Index: lib/rubygems.rb
>  ===================================================================
>  --- lib/rubygems.rb     (revision 1650)
>  +++ lib/rubygems.rb     (working copy)
>  @@ -523,6 +521,7 @@ module Gem
>     # Set the Gem home directory (as reported by Gem.dir).
>
>     def self.set_home(home)
>  +    home = home.gsub File::ALT_SEPARATOR, File::SEPARATOR if
>  File::ALT_SEPARATOR
>       @gem_home = home
>       ensure_gem_subdirectories(@gem_home)
>     end
>  @@ -535,6 +534,13 @@ module Gem
>     def self.set_paths(gpaths)
>       if gpaths
>         @gem_path = gpaths.split(File::PATH_SEPARATOR)
>  +
>  +      if File::ALT_SEPARATOR then
>  +        @gem_path.map do |path|
>  +          path.gsub File::ALT_SEPARATOR, File::SEPARATOR
>  +        end
>  +      end
>  +
>         @gem_path << Gem.dir
>       else
>         @gem_path = [Gem.dir]
>
>


@gem_path.map! was needed ;-)

My brain was too busted when I sent the mail to came with a solution :-D

Did commit the fix, thank you.

Now I'm focusing in the Zlib issues, which seems are the root for
TarInput and the malformed gems.

I'll contact you tomorrow.

Thank you again for your time.
-- 
Luis Lavena
Multimedia systems
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to