summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 08:42:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 08:42:49 +0000
commitee5edc5950dcd6d9577b35935e8028b25c0415c5 (patch)
tree95363d02c84039b5167ebc37849f804c3ea2f518 /tool/rbinstall.rb
parenta7f03a4659d34a459f915a41f260a1b9299ef219 (diff)
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
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 5e582f7..3b72ef8 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -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()