aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-18 12:04:55 -0500
committerJack Nagel2012-08-18 12:05:18 -0500
commit41994f942380fa7eaad92b24b8e0e38be021f916 (patch)
tree8415430ef242a53449099d7cf4c020ca08a91584 /Library
parentf8b7dfc648635cb2e6889739081a7ae600aac9df (diff)
downloadhomebrew-41994f942380fa7eaad92b24b8e0e38be021f916.tar.bz2
brew-mirror-check: update for new specs API
This was missed as part of the specs refactor. Fixes #14280. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmds/brew-mirror-check.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Contributions/cmds/brew-mirror-check.rb b/Library/Contributions/cmds/brew-mirror-check.rb
index 1ae06ce6a..0f398c171 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.