cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-6120 `cordova platform` should not fail when version script fails.
Date Thu, 27 Feb 2014 18:13:01 GMT
Repository: cordova-cli
Updated Branches:
  refs/heads/master 731ed676c -> a235d454d


CB-6120 `cordova platform` should not fail when version script fails.

cordova platform check should always offer to upgrade broken platforms

github: close #132


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/a235d454
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/a235d454
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/a235d454

Branch: refs/heads/master
Commit: a235d454d4b79fab5df8000e628d8e245c229fe1
Parents: 731ed67
Author: Josh Soref <jsoref@blackberry.com>
Authored: Thu Feb 27 12:58:10 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Feb 27 13:12:43 2014 -0500

----------------------------------------------------------------------
 src/platform.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/a235d454/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index ac1284a..1d4677e 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -165,6 +165,9 @@ module.exports = function platform(command, targets) {
                             return p + ' @ ' + v + ' could be updated to: ' + avail;
                         }
                         return '';
+                    }, function(v) {
+                        var avail = platforms[p].version;
+                        return p + ' @ broken could be updated to: ' + avail
                     });
                 }));
             }).then(function(platformsText) {
@@ -194,6 +197,8 @@ module.exports = function platform(command, targets) {
                     .then(function(v) {
                         if (!v) return p;
                         return p + ' ' + v;
+                    }, function(v) {
+                        return p + ' broken';
                     });
                 }));
             }).then(function(platformsText) {


Mime
View raw message