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 2015/03/02 16:11:13 UTC

cordova-lib git commit: CB-8578 `cordova plugin add ` should be able to restore urls and folders in addition to versions. (close #173)

Repository: cordova-lib
Updated Branches:
  refs/heads/master 473cef959 -> d7c2468a9


CB-8578 `cordova plugin add <plugin>` should be able to restore urls and folders in addition to versions. (close #173)


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

Branch: refs/heads/master
Commit: d7c2468a97a7fc2fb7c54c0e9be0c35473848f35
Parents: 473cef9
Author: Omar Mefire <om...@microsoft.com>
Authored: Fri Feb 27 20:03:38 2015 -0800
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Mar 2 10:10:30 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d7c2468a/cordova-lib/src/cordova/plugin.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/plugin.js b/cordova-lib/src/cordova/plugin.js
index 77175bd..dfca0d8 100644
--- a/cordova-lib/src/cordova/plugin.js
+++ b/cordova-lib/src/cordova/plugin.js
@@ -298,8 +298,8 @@ module.exports = function plugin(command, targets, opts) {
 };
 
 function getVersionFromConfigFile(plugin, cfg){
-    var feature = cfg.getFeature(plugin);
-    return feature && feature.params.version; 
+    var feature = cfg.getFeature(plugin); 
+    return feature && (feature.params.url || feature.params.installPath || feature.params.version);
 }
 
 function list(projectRoot, hooksRunner) {


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