diff options
| author | Max Howell | 2009-11-05 21:37:51 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:35 +0000 |
| commit | a4e86bb3264a17e0d5227e058d8bc4ea17f3dfbb (patch) | |
| tree | f1de9b91f471ab2084237fd8bbbeb4fd37411a55 /Library | |
| parent | 6386ce4df509b49f39d4dcddfe8d9020314c9df7 (diff) | |
| download | brew-a4e86bb3264a17e0d5227e058d8bc4ea17f3dfbb.tar.bz2 | |
Move BuildError and ExceutionError to global.h
More sensible, and fixes brew
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 | ||||
| -rw-r--r-- | Library/Homebrew/global.rb | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4d88eadd8..6dca1faa2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -23,13 +23,6 @@ # require 'download_strategy' -class ExecutionError <RuntimeError - def initialize cmd, args=[] - super "Failure while executing: #{cmd} #{args*' '}" - end -end -class BuildError <ExecutionError -end class FormulaUnavailableError <RuntimeError def initialize name @name = name diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index fd2916b21..946ce6669 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -54,3 +54,13 @@ MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp MACOS_VERSION = /(10\.\d+)(\.\d+)?/.match(MACOS_FULL_VERSION).captures.first.to_f HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; Mac OS X #{MACOS_FULL_VERSION})" + + +class ExecutionError <RuntimeError + def initialize cmd, args=[] + super "Failure while executing: #{cmd} #{args*' '}" + end +end + +class BuildError <ExecutionError +end |
