aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-23 14:11:34 +0200
committerMarkus Reiter2017-05-23 14:11:34 +0200
commitf4bacb4444e78113dd4b1c340fb0cf05f33ac6c4 (patch)
tree8c022f8dea210fdb02fe56ad571ed2110e3f1370
parentd1f599f1ed51976fc76ad19803de04864d12ef2b (diff)
downloadbrew-f4bacb4444e78113dd4b1c340fb0cf05f33ac6c4.tar.bz2
Fix `previous_version_and_checksum` method.
-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] ||= {}