cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Add a verbose log when running update command
Date Thu, 16 Jan 2014 18:30:50 GMT
Updated Branches:
  refs/heads/master abc993d5d -> bacdf8f3e


Add a verbose log when running update command


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

Branch: refs/heads/master
Commit: bacdf8f3e25def8005ee0e6e0ec60e0e67a71325
Parents: abc993d
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 16 13:30:42 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Jan 16 13:30:42 2014 -0500

----------------------------------------------------------------------
 src/platform.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/bacdf8f3/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index 1e14c99..b6a9613 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -132,7 +132,9 @@ module.exports = function platform(command, targets) {
                     // Call the platform's update script.
                     var script = path.join(libDir, 'bin', 'update');
                     var d = Q.defer();
-                    child_process.exec(script + ' "' + platformPath + '"', function(err,
stdout, stderr) {
+                    var cmd = script + ' "' + platformPath + '"';
+                    events.emit('verbose', 'Running command:' + cmd);
+                    child_process.exec(cmd, function(err, stdout, stderr) {
                         if (err) {
                             d.reject(new Error('Update script failed: ' + err + stderr));
                         } else {


Mime
View raw message