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 89EA711B2C for ; Thu, 11 Sep 2014 15:28:45 +0000 (UTC) Received: (qmail 14701 invoked by uid 500); 11 Sep 2014 15:28:44 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 14635 invoked by uid 500); 11 Sep 2014 15:28:44 -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 14194 invoked by uid 99); 11 Sep 2014 15:28:44 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 15:28:44 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3C8A091762E; Thu, 11 Sep 2014 15:28:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ian@apache.org To: commits@cordova.apache.org Date: Thu, 11 Sep 2014 15:29:10 -0000 Message-Id: In-Reply-To: <2462d7ab6fef4e3f8915fe23cf685060@git.apache.org> References: <2462d7ab6fef4e3f8915fe23cf685060@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [28/31] android commit: CB-7330 Don't run check_reqs for bin/create. CB-7330 Don't run check_reqs for bin/create. The create / update script doesn't require any dependencies, so we shouldn't fail without them. Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/3b99760a Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/3b99760a Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/3b99760a Branch: refs/heads/4.0.x Commit: 3b99760a4250bfd8b357584d2657f6b25a1ce152 Parents: 0e78dc3 Author: Andrew Grieve Authored: Wed Sep 10 12:42:37 2014 -0400 Committer: Andrew Grieve Committed: Wed Sep 10 12:44:17 2014 -0400 ---------------------------------------------------------------------- bin/lib/create.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3b99760a/bin/lib/create.js ---------------------------------------------------------------------- diff --git a/bin/lib/create.js b/bin/lib/create.js index c4c6f1b..0b79533 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -226,10 +226,6 @@ exports.createProject = function(project_path, package_name, project_name, proje return validatePackageName(package_name) .then(function() { validateProjectName(project_name); - }) - // Check that requirements are met and proper targets are installed - .then(function() { - return check_reqs.run(); }).then(function() { // Log the given values for the project console.log('Creating Cordova project for the Android platform:'); @@ -305,8 +301,7 @@ function extractProjectNameFromManifest(projectPath) { // Returns a promise. exports.updateProject = function(projectPath, shared) { var newVersion = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim(); - // Check that requirements are met and proper targets are installed - return check_reqs.run() + return Q() .then(function() { var projectName = extractProjectNameFromManifest(projectPath); var target_api = check_reqs.get_target();