DownloadStrategyDetector: handle tangled.sh Git URLs
We have one formula (`lsr`) that uses a tangled.sh URL but they don't support a .git extension, so it isn't detected as a Git URL by `DownloadStrategyDetector`. We can use `using: :git` with the `stable` URL but livecheck can't use the `Git` strategy for tangled.sh URLs because its `match` method depends on `DownloadStrategyDetector` detecting the URL as a `GitDownloadStrategy`. This adds support for tangled.sh URLs to `DownloadStrategyDetector` to address this issue. This will also allow us to remove/omit the `using: :git` argument from related URLs.
This commit is contained in:
parent
0dfd80dd55
commit
d4b7cc14f1
@ -1616,6 +1616,7 @@ class DownloadStrategyDetector
|
|||||||
when %r{^https?://.+\.git$},
|
when %r{^https?://.+\.git$},
|
||||||
%r{^git://},
|
%r{^git://},
|
||||||
%r{^https?://git\.sr\.ht/[^/]+/[^/]+$},
|
%r{^https?://git\.sr\.ht/[^/]+/[^/]+$},
|
||||||
|
%r{^https?://tangled\.sh/[^/]+/[^/]+$},
|
||||||
%r{^ssh://git}
|
%r{^ssh://git}
|
||||||
GitDownloadStrategy
|
GitDownloadStrategy
|
||||||
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user