cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [08/11] cordova-lib git commit: CB-8578 `cordova plugin add <plugin>` should be able to restore urls and folders in addition to versions. (close #173)
Date Tue, 03 Mar 2015 08:31:05 GMT
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/CB-8551
Commit: d7c2468a97a7fc2fb7c54c0e9be0c35473848f35
Parents: 473cef9
Author: Omar Mefire <ommenjik@microsoft.com>
Authored: Fri Feb 27 20:03:38 2015 -0800
Committer: Andrew Grieve <agrieve@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


Mime
View raw message