Merge pull request #8129 from Homebrew/pr-upload-fix

pr-upload: fix formula version
This commit is contained in:
Jonathan Chang 2020-07-29 17:54:07 +10:00 committed by GitHub
commit 7713e92fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ module Homebrew
hashes.each do |name, hash| hashes.each do |name, hash|
formula_path = HOMEBREW_REPOSITORY/hash["formula"]["path"] formula_path = HOMEBREW_REPOSITORY/hash["formula"]["path"]
formula_version = Formulary.factory(formula_path).version formula_version = Formulary.factory(formula_path).pkg_version
bottle_version = Version.new hash["formula"]["pkg_version"] bottle_version = Version.new hash["formula"]["pkg_version"]
next if formula_version == bottle_version next if formula_version == bottle_version