You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/07/11 23:50:37 UTC
[37/43] git commit: adding fetch and fixing cli interface
adding fetch and fixing cli interface
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/4aa51bd3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/4aa51bd3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/4aa51bd3
Branch: refs/heads/plugman-registry
Commit: 4aa51bd343e3e1ee4644d2bc64110c0d92075a64
Parents: 67ab4d3
Author: Anis Kadri <an...@apache.org>
Authored: Mon Jun 17 15:30:31 2013 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Jul 11 14:10:14 2013 -0700
----------------------------------------------------------------------
main.js | 1 +
src/fetch.js | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4aa51bd3/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 3db0f6a..c570114 100755
--- a/main.js
+++ b/main.js
@@ -25,6 +25,7 @@ var path = require('path')
, nopt = require('nopt')
, plugins = require('./src/util/plugins')
, registry = require('plugman-registry')
+ , config = require('./config')
, plugman = require('./plugman');
var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry10', 'wp7', 'wp8' ]
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4aa51bd3/src/fetch.js
----------------------------------------------------------------------
diff --git a/src/fetch.js b/src/fetch.js
index c86c76d..910c69d 100644
--- a/src/fetch.js
+++ b/src/fetch.js
@@ -68,10 +68,10 @@ module.exports = function fetchPlugin(plugin_dir, plugins_dir, options, callback
}
var data = {
-source: {
-type: 'local',
- path: plugin_dir
- }
+ source: {
+ type: 'local',
+ path: plugin_dir
+ }
};
metadata.save_fetch_metadata(dest, data);