From d49b5663c8e6bef5c2f2faf769f43fd6384d033e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 9 Oct 2013 21:54:26 -0500 Subject: [PATCH] vmalloc: fix download strategy --- Formula/vmalloc.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Formula/vmalloc.rb b/Formula/vmalloc.rb index 40c6aaf3f6..af019b1242 100644 --- a/Formula/vmalloc.rb +++ b/Formula/vmalloc.rb @@ -1,10 +1,14 @@ require 'formula' class VmallocDownloadStrategy < CurlDownloadStrategy - def _fetch - # downloading from AT&T requires using the following credentials - credentials = 'I accept www.opensource.org/licenses/cpl:.' - curl @url, '--output', @tarball_path, '--user', credentials + # downloading from AT&T requires using the following credentials + def credentials + 'I accept www.opensource.org/licenses/cpl:.' + end + + def curl(*args) + args << '--user' << credentials + super end end