aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb7
-rw-r--r--Library/Homebrew/global.rb10
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