Merge pull request #2668 from reitermarkus/fix-audit-checksum

Fix `previous_version_and_checksum` method.
This commit is contained in:
Mike McQuaid 2017-05-23 17:00:01 +01:00 committed by GitHub
commit 457fdc4abb

View File

@ -36,7 +36,7 @@ class FormulaVersions
begin begin
Homebrew.raise_deprecation_exceptions = true 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 rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and # We rescue these so that we can skip bad versions and
# continue walking the history # continue walking the history
@ -72,9 +72,9 @@ class FormulaVersions
next unless spec = f.send(spec_sym) next unless spec = f.send(spec_sym)
map[spec_sym] ||= { version: spec.version, checksum: spec.checksum } map[spec_sym] ||= { version: spec.version, checksum: spec.checksum }
end end
break if map[:stable] && map[:devel]
end end
break if map[:stable] || map[:devel]
end end
map[:stable] ||= {} map[:stable] ||= {}