aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-05-23 17:00:01 +0100
committerGitHub2017-05-23 17:00:01 +0100
commit457fdc4abbf93090576dbc8071ef347ac6a56a5e (patch)
tree6fa630f1d4773377ac021bdecb1e54868958cda2 /Library/Homebrew
parent0871e069a2e5ee2954296c931b3d4208c5f5bb4d (diff)
parentf4bacb4444e78113dd4b1c340fb0cf05f33ac6c4 (diff)
downloadbrew-457fdc4abbf93090576dbc8071ef347ac6a56a5e.tar.bz2
Merge pull request #2668 from reitermarkus/fix-audit-checksum
Fix `previous_version_and_checksum` method.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_versions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb
index 5c4e0ecc9..dda8dc712 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] ||= {}