From f4bacb4444e78113dd4b1c340fb0cf05f33ac6c4 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 23 May 2017 14:11:34 +0200 Subject: [PATCH] Fix `previous_version_and_checksum` method. --- Library/Homebrew/formula_versions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 5c4e0ecc96..dda8dc7126 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -36,7 +36,7 @@ class FormulaVersions begin Homebrew.raise_deprecation_exceptions = true - nostdout { yield Formulary.from_contents(name, path, contents) } + yield nostdout { Formulary.from_contents(name, path, contents) } rescue *IGNORED_EXCEPTIONS => e # We rescue these so that we can skip bad versions and # continue walking the history @@ -72,9 +72,9 @@ class FormulaVersions next unless spec = f.send(spec_sym) map[spec_sym] ||= { version: spec.version, checksum: spec.checksum } end - - break if map[:stable] && map[:devel] end + + break if map[:stable] || map[:devel] end map[:stable] ||= {}