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 <[email protected]>
Authored: Sun Jul 28 13:57:59 2013 -0700
Committer: Anis Kadri <[email protected]>
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 <[email protected]>",
   "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);
 
 }

Reply via email to