From 72c9e6a75b4a66ad0fa6d48f773d40d882782e7f Mon Sep 17 00:00:00 2001 From: Alexander Sorokin Date: Thu, 15 Sep 2016 15:07:43 +0300 Subject: [PATCH] CB-11857 Fixed VS 2015 detection on Windows 10 Anniversary --- bin/lib/check_reqs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 9e31fdaf..dd41b811 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -150,7 +150,7 @@ function getInstalledVSVersions() { .fail(function () { // if we got any errors on previous steps, we're assuming that // required VS update is not installed. - installedVersions.splice(installedVersions.indexOf('12.0')); + installedVersions.splice(installedVersions.indexOf('12.0'), 1); return installedVersions; }); }); @@ -346,7 +346,7 @@ module.exports.run = function () { /** Checks if Windows SDK required to build the target_platform is present * @param {String} target_platorm Target platform ('8.1' or '10.0') - */ + */ module.exports.isWinSDKPresent = function (target_platform) { return checkWinSdk(target_platform, '8.1'); }; @@ -421,9 +421,9 @@ module.exports.check_all = function() { if (requirement.isFatal) fatalIsHit = true; requirement.metadata.reason = err; result.push(requirement); - }); + }); }); - + }); }, Q()) .then(function () {