[macruby-changes] [4523] MacRuby/trunk/lib/rubygems/installer.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 17 14:30:26 PDT 2010
Revision: 4523
http://trac.macosforge.org/projects/ruby/changeset/4523
Author: lsansonetti at apple.com
Date: 2010-09-17 14:30:26 -0700 (Fri, 17 Sep 2010)
Log Message:
-----------
when installing an executable which already exists with a different shebang, don't ask a question if -f is provided
Modified Paths:
--------------
MacRuby/trunk/lib/rubygems/installer.rb
Modified: MacRuby/trunk/lib/rubygems/installer.rb
===================================================================
--- MacRuby/trunk/lib/rubygems/installer.rb 2010-09-17 21:19:08 UTC (rev 4522)
+++ MacRuby/trunk/lib/rubygems/installer.rb 2010-09-17 21:30:26 UTC (rev 4523)
@@ -346,7 +346,7 @@
ruby implementation or version. This operation may break the script.
WARN_MESSAGE
alert_warning(warn)
- if not ask_yes_no("Do you still wish to continue?")
+ if !@force && !ask_yes_no("Do you still wish to continue?")
raise GenerateBinaryError, "Could not write #{bin_script_path}"
end
say "Overwrote #{bin_script_path}" if Gem.configuration.really_verbose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100917/a2f79481/attachment.html>
More information about the macruby-changes
mailing list