cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-lib git commit: CB-8190 Make plugman config/cache directory to be customizable via PLUGMAN_HOME (close #134)
Date Tue, 23 Dec 2014 18:11:53 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 4b6c14f1e -> 40ee5bc5d


CB-8190 Make plugman config/cache directory to be customizable via PLUGMAN_HOME (close #134)


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

Branch: refs/heads/master
Commit: 40ee5bc5d306ef5b596daee90e952ea5936b4159
Parents: 4b6c14f
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Fri Dec 19 12:12:23 2014 +0300
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Dec 23 13:09:57 2014 -0500

----------------------------------------------------------------------
 cordova-lib/src/plugman/registry/registry.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/40ee5bc5/cordova-lib/src/plugman/registry/registry.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/registry/registry.js b/cordova-lib/src/plugman/registry/registry.js
index cd57d3e..5af4890 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -33,7 +33,8 @@ var npm = require('npm'),
     home = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE,
     events = require('../../events'),
     unpack = require('../../util/unpack'),
-    plugmanConfigDir = path.resolve(home, '.plugman'),
+    // if PLUGMAN_HOME env var is specified use it as config directory (see CB-8190)
+    plugmanConfigDir = process.env.PLUGMAN_HOME || path.resolve(home, '.plugman'),
     plugmanCacheDir = path.resolve(plugmanConfigDir, 'cache');
 
 


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


Mime
View raw message