diff options
author | isaacs <i@izs.me> | 2012-03-23 03:29:29 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-23 03:29:29 +0400 |
commit | 3f252649acd73223232787414d91715d40605082 (patch) | |
tree | cbfca54e66df22619583afef5a781cd169723d30 /node_modules/node-gyp/lib/configure.js | |
parent | a4bfc7e373a3c60bfc0e53c071b63cf7ae659aed (diff) |
Update node-gyp to 0.3.7
Diffstat (limited to 'node_modules/node-gyp/lib/configure.js')
-rw-r--r-- | node_modules/node-gyp/lib/configure.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/node_modules/node-gyp/lib/configure.js b/node_modules/node-gyp/lib/configure.js index ac204b15e..c1c99e7d9 100644 --- a/node_modules/node-gyp/lib/configure.js +++ b/node_modules/node-gyp/lib/configure.js @@ -92,13 +92,16 @@ function configure (gyp, argv, callback) { if (!version) { return callback(new Error('Invalid version number: ' + versionStr)) } - version = version.slice(1, 4).join('.') gyp.opts.ensure = true - gyp.commands.install([ version ], createBuildDir) + gyp.commands.install([ versionStr ], function (err, _version) { + if (err) return callback(err) + version = _version + gyp.verbose('setting target version to:', version) + createBuildDir() + }) } - function createBuildDir (err) { - if (err) return callback(err) + function createBuildDir () { gyp.verbose('attempting to create "build" dir', buildDir) mkdirp(buildDir, function (err, isNew) { if (err) return callback(err) |