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/03/04 06:13:47 UTC

git commit: CB-6159 Fix incorrect "success" message when publishing fails.

Repository: cordova-plugman
Updated Branches:
  refs/heads/master 6ad1fd0ae -> 76a445f3f


CB-6159 Fix incorrect "success" message when publishing fails.

Problem was introduced by promise refactoring.


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

Branch: refs/heads/master
Commit: 76a445f3f6ac2a14d11809e8e1a334d1b41eb52e
Parents: 6ad1fd0
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Mar 4 00:13:26 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Mar 4 00:13:26 2014 -0500

----------------------------------------------------------------------
 src/registry/registry.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/76a445f3/src/registry/registry.js
----------------------------------------------------------------------
diff --git a/src/registry/registry.js b/src/registry/registry.js
index 2587f41..3b1a973 100644
--- a/src/registry/registry.js
+++ b/src/registry/registry.js
@@ -142,8 +142,8 @@ module.exports = {
     publish: function(args) {
         return initSettings()
         .then(function(settings) {
-            var p = manifest.generatePackageJsonFromPluginXml(args[0]);
-            p.then(function() {
+            return manifest.generatePackageJsonFromPluginXml(args[0])
+            .then(function() {
                 return Q.ninvoke(npm, 'load', settings);
             }).then(function() {
                 return Q.ninvoke(npm.commands, 'publish', args)