Skip to content

Commit 1b931fc

Browse files
Jonathan Claudiussegiddins
Jonathan Claudius
authored andcommitted
Non-working patch for deducing symlinked base-dirs
1 parent 4751dd4 commit 1b931fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/rubygems/package.rb

+2
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ def install_location filename, destination_dir # :nodoc:
421421
destination_dir = File.expand_path destination_dir
422422

423423
destination = File.join destination_dir, filename
424+
destination = File.realpath destination if
425+
File.respond_to? :realpath
424426
destination = File.expand_path destination
425427

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

0 commit comments

Comments
 (0)