[livecheck] Help to check head only formulae
This commit is contained in:
parent
0f0e2c7bd9
commit
31f4570cc2
@ -279,7 +279,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
current_str = current.to_s
|
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?
|
latest = if formula&.head_only?
|
||||||
T.must(formula.head).downloader.fetch_last_commit
|
T.must(formula.head).downloader.fetch_last_commit
|
||||||
@ -345,7 +345,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
latest_str = latest.to_s
|
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?
|
is_outdated = if formula&.head_only?
|
||||||
# A HEAD-only formula is considered outdated if the latest upstream
|
# A HEAD-only formula is considered outdated if the latest upstream
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user