mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Install only files explicitly referenced by bundled gems.
[Bug #13417] [Fix GH-1580] Author: Vít Ondruch <vondruch@redhat.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8913e2946e
commit
7965327d13
1 changed files with 6 additions and 4 deletions
|
@ -678,10 +678,12 @@ module RbInstall
|
|||
return if path == destination_dir
|
||||
File.chmod(0700, destination_dir)
|
||||
mode = pattern == "bin/*" ? $script_mode : $data_mode
|
||||
install_recursive(path, without_destdir(destination_dir),
|
||||
:glob => pattern,
|
||||
:no_install => "*.gemspec",
|
||||
:mode => mode)
|
||||
spec.files.each do |f|
|
||||
src = File.join(path, f)
|
||||
dest = File.join(without_destdir(destination_dir), f)
|
||||
makedirs(dest[/.*(?=\/)/m])
|
||||
install src, dest, :mode => mode
|
||||
end
|
||||
File.chmod($dir_mode, destination_dir)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue