diff options
| author | Jack Nagel | 2014-03-05 21:11:45 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-03-05 21:11:45 -0600 |
| commit | 2f9a954e2c557441f5b0bb11d5b2d89fec952be5 (patch) | |
| tree | bee70f7e94cf650bd4d1992fbc84c6d59062abcb /Library/Homebrew | |
| parent | 7c6cc92c76a4dba0100394c601b6717060d337c2 (diff) | |
| download | homebrew-2f9a954e2c557441f5b0bb11d5b2d89fec952be5.tar.bz2 | |
Oops
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6b057dcaa..e11aa0019 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) |
