Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B4B71099A for ; Wed, 27 Nov 2013 22:27:03 +0000 (UTC) Received: (qmail 63891 invoked by uid 500); 27 Nov 2013 22:27:01 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 63816 invoked by uid 500); 27 Nov 2013 22:27:01 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 63596 invoked by uid 99); 27 Nov 2013 22:27:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 22:27:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 94CC390EF69; Wed, 27 Nov 2013 22:27:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Wed, 27 Nov 2013 22:27:09 -0000 Message-Id: <45769ac99ca0422c9e82793af9a9e94e@git.apache.org> In-Reply-To: <31693a31af234d8a845eb70b8938dee7@git.apache.org> References: <31693a31af234d8a845eb70b8938dee7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/51] [abbrv] git commit: Remove platform check in platform add and update Remove platform check in platform add and update Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/20faff11 Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/20faff11 Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/20faff11 Branch: refs/heads/fireos Commit: 20faff115b7f8b647e964e26fb0b9dd40f2bd31c Parents: 86802d8 Author: SomaticIT Authored: Thu Nov 14 22:06:42 2013 +0100 Committer: SomaticIT Committed: Thu Nov 14 22:06:42 2013 +0100 ---------------------------------------------------------------------- src/platform.js | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/20faff11/src/platform.js ---------------------------------------------------------------------- diff --git a/src/platform.js b/src/platform.js index 214d396..536969c 100644 --- a/src/platform.js +++ b/src/platform.js @@ -116,10 +116,6 @@ module.exports = function platform(command, targets) { .then(function() { return lazy_load.based_on_config(projectRoot, plat); }).then(function(libDir) { - // Check for platforms are in subdirectories into repositories - if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(plat) !== -1) - libDir = path.join(libDir, target); - var script = path.join(libDir, 'bin', 'update'); var d = Q.defer(); child_process.exec(script + ' "' + path.join(projectRoot, 'platforms', plat) + '"', function(err, stdout, stderr) { @@ -226,10 +222,6 @@ function call_into_create(target, projectRoot, cfg, libDir, template_dir) { events.emit('verbose', 'Checking if platform "' + target + '" passes minimum requirements...'); return module.exports.supports(projectRoot, target) .then(function() { - // Check for platforms are in subdirectories into repositories - if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(target) !== -1) - libDir = path.join(libDir, target); - // Create a platform app using the ./bin/create scripts that exist in each repo. var bin = path.join(libDir, 'bin', 'create'); var args = (target=='ios') ? '--arc' : '';