diff options
| author | Jack Nagel | 2013-02-17 22:54:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-18 12:13:35 -0600 |
| commit | 1a799f04e6af870c03aa02f2c3a9db6e0bd55bca (patch) | |
| tree | 98f563b1edfb8c0b976260150600932bf809439a /Library/Homebrew/formula.rb | |
| parent | f172d3a6eb3c78be87dc3f58786a7db78cd12fca (diff) | |
| download | brew-1a799f04e6af870c03aa02f2c3a9db6e0bd55bca.tar.bz2 | |
Remove unused variables
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6d45d5ae3..7b8877618 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -228,7 +228,7 @@ class Formula # we allow formulae to do anything they want to the Ruby process # so load any deps before this point! And exit asap afterwards yield self - rescue RuntimeError, SystemCallError => e + rescue RuntimeError, SystemCallError %w(config.log CMakeCache.txt).each do |fn| (HOMEBREW_LOGS/name).install(fn) if File.file?(fn) end @@ -294,7 +294,7 @@ class Formula names.each do |name| yield begin Formula.factory(name) - rescue => e + rescue # Don't let one broken formula break commands. But do complain. onoe "Failed to import: #{name}" next @@ -543,7 +543,7 @@ protected mkdir_p(logd) rd, wr = IO.pipe - pid = fork do + fork do rd.close $stdout.reopen wr $stderr.reopen wr @@ -570,7 +570,7 @@ protected raise ErrorDuringExecution end end - rescue ErrorDuringExecution => e + rescue ErrorDuringExecution raise BuildError.new(self, cmd, args, $?) ensure f.close if f and not f.closed? |
