brew-mirror-check: update for new specs API
This was missed as part of the specs refactor. Fixes Homebrew/homebrew#14280. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
a81da08732
commit
a119ee718d
@ -2,8 +2,10 @@ require 'formula'
|
|||||||
|
|
||||||
class Formula
|
class Formula
|
||||||
def test_mirror mirror
|
def test_mirror mirror
|
||||||
url, specs = mirror.values_at :url, :specs
|
# Checksum verification is done against @active_spec, so we need only
|
||||||
downloader = download_strategy.new url, name, version, specs
|
# populate the stub spec object with the mirror URL.
|
||||||
|
spec = SoftwareSpec.new(mirror)
|
||||||
|
downloader = download_strategy.new(name, spec)
|
||||||
|
|
||||||
# Force the downloader to attempt the download by removing the tarball if
|
# Force the downloader to attempt the download by removing the tarball if
|
||||||
# it is allready cached.
|
# it is allready cached.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user