rbinstall.rb: gems dir_mode
* tool/rbinstall.rb (DirPackage#extract_files): set directories permission of gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6b0653406
commit
36ba828dac
@ -26,7 +26,7 @@ rescue LoadError
|
|||||||
end
|
end
|
||||||
|
|
||||||
STDOUT.sync = true
|
STDOUT.sync = true
|
||||||
File.umask(0)
|
File.umask(0222)
|
||||||
|
|
||||||
def parse_args(argv = ARGV)
|
def parse_args(argv = ARGV)
|
||||||
$mantype = 'doc'
|
$mantype = 'doc'
|
||||||
@ -658,10 +658,12 @@ end
|
|||||||
def extract_files(destination_dir, pattern = "*")
|
def extract_files(destination_dir, pattern = "*")
|
||||||
path = File.dirname(@gem.path)
|
path = File.dirname(@gem.path)
|
||||||
return if path == destination_dir
|
return if path == destination_dir
|
||||||
|
File.chmod(0700, destination_dir)
|
||||||
install_recursive(path, without_destdir(destination_dir),
|
install_recursive(path, without_destdir(destination_dir),
|
||||||
:glob => pattern,
|
:glob => pattern,
|
||||||
:no_install => "*.gemspec",
|
:no_install => "*.gemspec",
|
||||||
:mode => $data_mode)
|
:mode => $data_mode)
|
||||||
|
File.chmod($dir_mode, destination_dir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user