From d6937c9d3f9f6790d46d117aed78f5559aaa988d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 5 Mar 2014 21:11:45 -0600 Subject: [PATCH] Oops --- Library/Homebrew/formula.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6b057dcaa7..e11aa00195 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -61,7 +61,11 @@ class Formula # requires passing in the active_spec version. This should be fixed by # making the bottle an attribute of SoftwareSpec rather than a separate # spec itself. - @pkg_version = PkgVersion.new(version, revision) unless active_spec == bottle + if active_spec == bottle + @pkg_version = bottle.version + else + @pkg_version = PkgVersion.new(version, revision) + end @pin = FormulaPin.new(self)