1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rbinstall.rb: fix directory permissions

* tool/rbinstall.rb (gem): fix permissions of bundle gems
  directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-07-15 08:42:49 +00:00
parent a7f03a4659
commit ee5edc5950

View file

@ -721,10 +721,13 @@ install?(:ext, :comm, :gem) do
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
prepare "bundle gems", gem_dir, directories
Dir.glob(srcdir+'/gems/*.gem').each do |gem|
Gem.install gem, install_dir: with_destdir(Gem.dir)
Gem.install gem, :install_dir => with_destdir(Gem.dir)
gemname = Pathname(gem).basename
puts "#{" "*30}#{gemname}"
end
# fix directory permissions
# TODO: Gem.install should accept :dir_mode option or something
File.chmod($dir_mode, *Dir.glob(with_destdir(Gem.dir)+"/**/"))
end
parse_args()