[Rubygems-developers] gem update --system --no-format-executable doesn't work

Eric Hodel drbrain at segment7.net
Mon Apr 7 16:26:32 EDT 2008


On Apr 6, 2008, at 21:43 PM, Stephen Bannasch wrote:
> Using --no-format-executable to keep gem named 'gem' doesn't work
> when running gem update --system.
>
> [...]
>
> Anyways here's the change I was trying to test:
>
> $ svn diff lib/rubygems/commands/update_command.rb
> Index: lib/rubygems/commands/update_command.rb
> ===================================================================
> --- lib/rubygems/commands/update_command.rb	(revision 1694)
> +++ lib/rubygems/commands/update_command.rb	(working copy)
> @@ -117,6 +117,7 @@
>      args.push '--prefix', Gem.prefix unless Gem.prefix.nil?
>      args << '--no-rdoc' unless options[:generate_rdoc]
>      args << '--no-ri' unless options[:generate_ri]
> +    args << '--no-format-executable' if  
> options[:no_format_executable]
>
>      update_dir = File.join Gem.dir, 'gems', "rubygems-update- 
> #{version}"
>

This looks good, I will commit it.

> I think that might make this command install gem as 'gem':
>
>   $ jruby -S gem update --system --no-format-executable
>
> I can however get an updated rubygems gem command installed as 'gem'
> if I do the two step update like this:
>
>   $ jruby -S gem install rubygems-update
>   $ jruby -S update_rubygems --no-format-executable

Since the existing RubyGems doesn't pass this along, this is what  
you'll need until it's in an installed version.


More information about the Rubygems-developers mailing list