Merge pull request #18480 from khipp/fix-auto-bump

dev-cmd/bump: fix comparison of versions with comma-separated values
This commit is contained in:
Mike McQuaid 2024-10-02 19:46:03 +01:00 committed by GitHub
commit a54e9c5a4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,7 +319,9 @@ module Homebrew
livecheck_latest = livecheck_result(loaded_formula_or_cask) livecheck_latest = livecheck_result(loaded_formula_or_cask)
new_version_value = if (livecheck_latest.is_a?(Version) && livecheck_latest >= current_version_value) || new_version_value = if (livecheck_latest.is_a?(Version) &&
Livecheck::LivecheckVersion.create(formula_or_cask, livecheck_latest) >=
Livecheck::LivecheckVersion.create(formula_or_cask, current_version_value)) ||
current_version_value == "latest" current_version_value == "latest"
livecheck_latest livecheck_latest
elsif livecheck_latest.is_a?(String) && livecheck_latest.start_with?("skipped") elsif livecheck_latest.is_a?(String) && livecheck_latest.start_with?("skipped")