Skip to content

Commit

Permalink
Non-working patch for deducing symlinked base-dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius authored and segiddins committed Feb 16, 2018
1 parent 4751dd4 commit 1b931fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubygems/package.rb
Expand Up @@ -421,6 +421,8 @@ def install_location filename, destination_dir # :nodoc:
destination_dir = File.expand_path destination_dir

destination = File.join destination_dir, filename
destination = File.realpath destination if
File.respond_to? :realpath
destination = File.expand_path destination

raise Gem::Package::PathError.new(destination, destination_dir) unless
Expand Down

0 comments on commit 1b931fc

Please sign in to comment.