diff options
| author | Jack Nagel | 2014-05-28 19:00:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-28 19:02:30 -0500 |
| commit | 375c073cec0ce0c18e11fa039e2cbbd4baaa9751 (patch) | |
| tree | 7a6564e57440822427f4cd24c81b50cde363aa5c /Library | |
| parent | 9821316ec17a19d817953cc9703dd57cd3d9ae5c (diff) | |
| download | brew-375c073cec0ce0c18e11fa039e2cbbd4baaa9751.tar.bz2 | |
Remove unused attribute
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 5 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 0b0bf632f..e68cb9b13 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -154,12 +154,11 @@ class FormulaConflictError < Homebrew::InstallationError end class BuildError < Homebrew::InstallationError - attr_reader :exit_status, :command, :env + attr_reader :command, :env - def initialize formula, cmd, args, es + def initialize formula, cmd, args @command = cmd @env = ENV.to_hash - @exit_status = es.exitstatus rescue 1 args = args.map{ |arg| arg.to_s.gsub " ", "\\ " }.join(" ") super formula, "Failed executing: #{command} #{args}" end diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 19def4337..3b3863681 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -573,7 +573,7 @@ class Formula f.puts require 'cmd/config' Homebrew.write_build_config(f) - raise BuildError.new(self, cmd, args, $?) + raise BuildError.new(self, cmd, args) end end ensure |
