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/28 22:57:53 UTC
git commit: bug on first action
Updated Branches:
refs/heads/master a7f107c26 -> 7fd2f17ab
bug on first action
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/7fd2f17a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/7fd2f17a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/7fd2f17a
Branch: refs/heads/master
Commit: 7fd2f17abb40bd088497cf0600f1ee41a7d6fa45
Parents: a7f107c
Author: Anis Kadri <an...@apache.org>
Authored: Sun Jul 28 13:57:59 2013 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Sun Jul 28 13:57:59 2013 -0700
----------------------------------------------------------------------
package.json | 2 +-
src/registry/registry.js | 14 ++------------
2 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/7fd2f17a/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index c2129c5..9318680 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"author": "Andrew Lunny <al...@gmail.com>",
"name": "plugman",
"description": "install/uninstall Cordova plugins",
- "version": "0.9.20",
+ "version": "0.9.21",
"repository": {
"type": "git",
"url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git"
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/7fd2f17a/src/registry/registry.js
----------------------------------------------------------------------
diff --git a/src/registry/registry.js b/src/registry/registry.js
index a56f36a..5a954b3 100644
--- a/src/registry/registry.js
+++ b/src/registry/registry.js
@@ -196,20 +196,10 @@ function initSettings(cb) {
settings = rc('plugman', {
cache: plugmanCacheDir,
force: true,
+ registry: 'http://registry.cordova.io',
logstream: fs.createWriteStream(path.resolve(plugmanConfigDir, 'plugman.log')),
userconfig: path.resolve(plugmanConfigDir, 'config')
});
-
- if(settings.registry) {
- cb(null, settings);
- } else {
- // setting registry
- npm.load(settings, function(er) {
- if (er) return handlError(er);
- npm.commands.config(['set', 'registry', 'http://registry.cordova.io'], function(err) {
- cb(err, settings);
- });
- });
- }
+ cb(null, settings);
}