Merge pull request #14210 from dawidd6/bump-check-is-a-version

dev-cmd/bump: check if Repology output is a version first
This commit is contained in:
Dawid Dziurla 2022-12-06 21:24:56 +01:00 committed by GitHub
commit a4d2aa8fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,8 @@ module Homebrew
return unless args.open_pr? return unless args.open_pr?
if repology_latest > current_version && if repology_latest.is_a?(Version) &&
repology_latest > current_version &&
repology_latest > livecheck_latest && repology_latest > livecheck_latest &&
formula_or_cask.livecheckable? formula_or_cask.livecheckable?
puts "#{title_name} was not bumped to the Repology version because it's livecheckable." puts "#{title_name} was not bumped to the Repology version because it's livecheckable."