mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Fixed to warn with shadowing outer local variable.
https://github.com/rubygems/rubygems/commit/b0588a87b1
This commit is contained in:
parent
5a8d848849
commit
8eb2921f56
1 changed files with 4 additions and 4 deletions
|
@ -45,12 +45,12 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
|
|||
cmd.push(*args)
|
||||
|
||||
begin
|
||||
run(cmd, results) do |status, results|
|
||||
run(cmd, results) do |s, r|
|
||||
if File.exist? 'mkmf.log'
|
||||
unless status.success?
|
||||
results << "To see why this extension failed to compile, please check" \
|
||||
unless s.success?
|
||||
r << "To see why this extension failed to compile, please check" \
|
||||
" the mkmf.log which can be found here:\n"
|
||||
results << " " + File.join(dest_path, 'mkmf.log') + "\n"
|
||||
r << " " + File.join(dest_path, 'mkmf.log') + "\n"
|
||||
end
|
||||
FileUtils.mv 'mkmf.log', dest_path
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue