diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
commit | 85b29e19a3a95294c54a0204bb94ce31bd7369b7 (patch) | |
tree | b7bf99329ed8c29768f2502d3bd418e57be32268 /lib/rubygems/package.rb | |
parent | e255ee2321e51eaf05c364c99b4fe7fdf31a503c (diff) | |
download | ruby-85b29e19a3a95294c54a0204bb94ce31bd7369b7.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
HEAD(2c6d256). It contains to update vendored Molinillo to 0.5.0.
https://github.com/rubygems/rubygems/pull/1638
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/package.rb')
-rw-r--r-- | lib/rubygems/package.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index 0d9adba26e..c36e71d800 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -211,7 +211,9 @@ class Gem::Package stat = File.lstat file if stat.symlink? - tar.add_symlink file, File.readlink(file), stat.mode + relative_dir = File.dirname(file).sub("#{Dir.pwd}/", '') + target_path = File.join(relative_dir, File.readlink(file)) + tar.add_symlink file, target_path, stat.mode end next unless stat.file? |