aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-12 21:06:51 +0100
committerMike McQuaid2016-08-12 21:07:03 +0100
commite0c8c00e879410c6de6062c3de5319e6c073dd04 (patch)
tree33f2f5a9b78bc329360435ffe6e62f7a0e41de7c /Library
parentc56625f8b76f5e33ac5e086af4c9d3d79c593218 (diff)
downloadbrew-e0c8c00e879410c6de6062c3de5319e6c073dd04.tar.bz2
formula_versions: set/unset raise_deprecation_exceptions.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_versions.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb
index de285b642..13cb8ac8c 100644
--- a/Library/Homebrew/formula_versions.rb
+++ b/Library/Homebrew/formula_versions.rb
@@ -34,6 +34,7 @@ class FormulaVersions
contents = file_contents_at_revision(rev)
begin
+ Homebrew.raise_deprecation_exceptions = true
nostdout { yield Formulary.from_contents(name, path, contents) }
rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and
@@ -41,6 +42,8 @@ class FormulaVersions
ohai "#{e} in #{name} at revision #{rev}", e.backtrace if ARGV.debug?
rescue FormulaUnavailableError
# Suppress this error
+ ensure
+ Homebrew.raise_deprecation_exceptions = false
end
end