deps: make node-gyp fetch tarballs from iojs.org

Apply a small patch that makes node-gyp fetch the tarballs from
https://iojs.org/ instead of http://nodejs.org/

A patch better suited for inclusion upstream will be put together
shortly.

PR-URL: https://github.com/iojs/io.js/pull/343
Reviewed-By: Rod Vagg <rod@vagg.org>
pull/904/merge
Ben Noordhuis 2015-01-13 23:22:49 +01:00
parent 1e2fa1537f
commit 19e3d5e10a
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ function install (gyp, argv, callback) {
} }
} }
var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'http://nodejs.org/dist' var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'https://iojs.org/dist'
// Determine which node dev files version we are installing // Determine which node dev files version we are installing
@ -185,7 +185,7 @@ function install (gyp, argv, callback) {
// now download the node tarball // now download the node tarball
var tarPath = gyp.opts['tarball'] var tarPath = gyp.opts['tarball']
var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/node-v' + version + '.tar.gz' var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/iojs-v' + version + '.tar.gz'
, badDownload = false , badDownload = false
, extractCount = 0 , extractCount = 0
, gunzip = zlib.createGunzip() , gunzip = zlib.createGunzip()