Skip to content

Commit

Permalink
Merge pull request #8133 from Homebrew/another-fix
Browse files Browse the repository at this point in the history
pr-upload: use PkgVersion.parse instead of Version.new
  • Loading branch information
jonchang committed Jul 29, 2020
2 parents 939fa3e + 6fe56c3 commit 28554db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/pr-upload.rb
Expand Up @@ -40,7 +40,7 @@ def check_bottled_formulae(json_files)
hashes.each do |name, hash|
formula_path = HOMEBREW_REPOSITORY/hash["formula"]["path"]
formula_version = Formulary.factory(formula_path).pkg_version
bottle_version = Version.new hash["formula"]["pkg_version"]
bottle_version = PkgVersion.parse hash["formula"]["pkg_version"]
next if formula_version == bottle_version

odie "Bottles are for #{name} #{bottle_version} but formula is version #{formula_version}!"
Expand Down

0 comments on commit 28554db

Please sign in to comment.