diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-28 00:33:08 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-28 00:33:08 +0000 |
commit | 4e53f3ad72d16ec251ba92233ce4757a3bc13618 (patch) | |
tree | 5795b83f4ca64ebee9a9f1586cfd6489eafce0e4 /lib/rubygems/installer.rb | |
parent | 7a3f794da0fbfacb99c0721271990d39c9885928 (diff) | |
download | ruby-4e53f3ad72d16ec251ba92233ce4757a3bc13618.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.4.
Please see entries of 2.6.4 on
https://github.com/rubygems/rubygems/blob/master/History.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r-- | lib/rubygems/installer.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 1813c9a27d..3269179200 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -509,12 +509,6 @@ class Gem::Installer # the symlink if the gem being installed has a newer version. def generate_bin_symlink(filename, bindir) - if Gem.win_platform? then - alert_warning "Unable to use symlinks on Windows, installing wrapper" - generate_bin_script filename, bindir - return - end - src = File.join gem_dir, spec.bindir, filename dst = File.join bindir, formatted_program_filename(filename) @@ -528,6 +522,9 @@ class Gem::Installer end FileUtils.symlink src, dst, :verbose => Gem.configuration.really_verbose + rescue NotImplementedError, SystemCallError + alert_warning "Unable to use symlinks, installing wrapper" + generate_bin_script filename, bindir end ## |