You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/09/10 18:44:23 UTC

[2/2] 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/master
Commit: 3b99760a4250bfd8b357584d2657f6b25a1ce152
Parents: 0e78dc3
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Sep 10 12:42:37 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
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();