You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/03/03 09:31:06 UTC

[09/11] cordova-lib git commit: CB-8457 Ignore version specifier when running hooks (close #165)

CB-8457 Ignore version specifier when running hooks (close #165)


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

Branch: refs/heads/CB-8551
Commit: 99f981a3adc903bd454d6f01410dc350d85a8ed3
Parents: d7c2468
Author: Connor Pearson <cj...@gmail.com>
Authored: Wed Feb 11 19:50:32 2015 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Mar 2 10:11:38 2015 -0500

----------------------------------------------------------------------
 cordova-lib/src/hooks/HooksRunner.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/99f981a3/cordova-lib/src/hooks/HooksRunner.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/hooks/HooksRunner.js b/cordova-lib/src/hooks/HooksRunner.js
index 4191efd..0eaa04d 100644
--- a/cordova-lib/src/hooks/HooksRunner.js
+++ b/cordova-lib/src/hooks/HooksRunner.js
@@ -67,6 +67,7 @@ HooksRunner.prototype.prepareOptions = function(opts) {
     opts.projectRoot = this.projectRoot;
     opts.cordova = opts.cordova || {};
     opts.cordova.platforms = opts.cordova.platforms || opts.platforms || cordovaUtil.listPlatforms(opts.projectRoot);
+    opts.cordova.platforms = opts.cordova.platforms.map(function(platform) { return platform.split('@')[0]; } );
     opts.cordova.plugins = opts.cordova.plugins || opts.plugins || cordovaUtil.findPlugins(path.join(opts.projectRoot, 'plugins'));
 
     try {
@@ -225,4 +226,4 @@ function extractSheBangInterpreter(fullpath) {
     if (shMatch)
         hookCmd = shMatch[1];
     return hookCmd;
-}
\ No newline at end of file
+}


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