vmalloc: fix download strategy

This commit is contained in:
Jack Nagel 2013-10-09 21:54:26 -05:00
parent ad7449efcf
commit d49b5663c8

View file

@ -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