From a119ee718d00c7dab4e06f5e0ce156212f7f5b45 Mon Sep 17 00:00:00 2001 From: Jack Nagel <jacknagel@gmail.com> Date: Sat, 18 Aug 2012 12:04:55 -0500 Subject: [PATCH] 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> --- Library/Contributions/cmds/brew-mirror-check.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Contributions/cmds/brew-mirror-check.rb b/Library/Contributions/cmds/brew-mirror-check.rb index 1ae06ce6aa..0f398c171c 100755 --- a/Library/Contributions/cmds/brew-mirror-check.rb +++ b/Library/Contributions/cmds/brew-mirror-check.rb @@ -2,8 +2,10 @@ require 'formula' class Formula def test_mirror mirror - url, specs = mirror.values_at :url, :specs - downloader = download_strategy.new url, name, version, specs + # Checksum verification is done against @active_spec, so we need only + # 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 # it is allready cached. -- GitLab