download_strategy: add Apache mirror lua.

The ASF now has a preferred .lua mirror script on top of the .cgi file

Closes Homebrew/homebrew#43521.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Jan Lehnardt 2015-09-02 22:07:51 +02:00 committed by Mike McQuaid
parent 7d573034bb
commit 93f7ef6f42

View File

@ -837,7 +837,7 @@ class DownloadStrategyDetector
case url
when %r{^https?://.+\.git$}, %r{^git://}
GitDownloadStrategy
when %r{^https?://www\.apache\.org/dyn/closer\.cgi}
when %r{^https?://www\.apache\.org/dyn/closer\.cgi}, %r{^https?://www\.apache\.org/dyn/closer\.lua}
CurlApacheMirrorDownloadStrategy
when %r{^https?://(.+?\.)?googlecode\.com/svn}, %r{^https?://svn\.}, %r{^svn://}, %r{^https?://(.+?\.)?sourceforge\.net/svnroot/}
SubversionDownloadStrategy