[livecheck] Help to check head only formulae

This commit is contained in:
Sharon Azriel 2024-07-24 14:58:41 +03:00 committed by Sam Ford
parent 0f0e2c7bd9
commit 31f4570cc2
No known key found for this signature in database
GPG Key ID: 7AF5CBEE1DD6F76D

View File

@ -279,7 +279,7 @@ module Homebrew
end
current_str = current.to_s
current = LivecheckVersion.create(formula_or_cask, current)
current = LivecheckVersion.create(formula_or_cask, current) unless formula&.head_only?
latest = if formula&.head_only?
T.must(formula.head).downloader.fetch_last_commit
@ -345,7 +345,7 @@ module Homebrew
end
latest_str = latest.to_s
latest = LivecheckVersion.create(formula_or_cask, latest)
latest = LivecheckVersion.create(formula_or_cask, latest) unless formula&.head_only?
is_outdated = if formula&.head_only?
# A HEAD-only formula is considered outdated if the latest upstream