Skip to content
Snippets Groups Projects
Unverified Commit 6fe56c33 authored by Dawid Dziurla's avatar Dawid Dziurla
Browse files

pr-upload: use PkgVersion.parse instead of Version.new

parent 7713e92f
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ module Homebrew
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}!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment