mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Only suggest adding livecheck
it auto-detection fails.
This commit is contained in:
parent
1781b37100
commit
ba87bfc4e4
@ -316,6 +316,7 @@ module Cask
|
||||
case cask.url.to_s
|
||||
when %r{sourceforge.net/(\S+)}
|
||||
return if cask.version.latest?
|
||||
return unless online?
|
||||
|
||||
add_error "Download is hosted on SourceForge, #{add_livecheck}"
|
||||
when %r{dl.devmate.com/(\S+)}
|
||||
|
@ -630,6 +630,7 @@ describe Cask::Audit, :cask do
|
||||
|
||||
context "when the download is hosted on SourceForge and does not have a livecheck" do
|
||||
let(:cask_token) { "sourceforge-correct-url-format" }
|
||||
let(:online) { true }
|
||||
|
||||
it { is_expected.to fail_with(message) }
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user