You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/12/17 17:53:01 UTC

[2/7] cordova-ubuntu git commit: fix for update script

fix for update script


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

Branch: refs/heads/master
Commit: 178832e268b6cb66f16e02ce718063692d6893b3
Parents: 9a10c78
Author: David Barth <da...@canonical.com>
Authored: Thu Nov 19 16:31:24 2015 +0100
Committer: David Barth <da...@canonical.com>
Committed: Thu Nov 19 16:31:24 2015 +0100

----------------------------------------------------------------------
 bin/lib/update.js | 2 +-
 bin/update        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/178832e2/bin/lib/update.js
----------------------------------------------------------------------
diff --git a/bin/lib/update.js b/bin/lib/update.js
index f315501..3567d56 100644
--- a/bin/lib/update.js
+++ b/bin/lib/update.js
@@ -64,5 +64,5 @@ exports.updateProject = function(projectPath) {
     shell.mv(path.join(tmp, 'coreplugins.cpp'), path.join(projectPath, 'build', 'src'));
 
     shell.rm('-r', tmp);
-    console.log('project updated'.green);
+    console.log('project updated');
 }

http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/178832e2/bin/update
----------------------------------------------------------------------
diff --git a/bin/update b/bin/update
index 4f4328f..7ed55e5 100755
--- a/bin/update
+++ b/bin/update
@@ -28,6 +28,7 @@ var projectPath = args[2];
 var currentVersion = fs.readFileSync(path.join(projectPath, 'build', 'VERSION'), {encoding: "utf8"});
 var version = fs.readFileSync(path.join(ROOT, 'VERSION'), {encoding: "utf8"});
 if (version !== currentVersion) {
+    var check_reqs = require('./lib/check_reqs').check_reqs;
     check_reqs(function () {
         require('./lib/update').updateProject(projectPath, ROOT);
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org