cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/7] git commit: CB-6178 Plugman does not cache downloaded plugins
Date Thu, 24 Apr 2014 21:13:24 GMT
Repository: cordova-plugman
Updated Branches:
  refs/heads/browserify 7e05089d0 -> 013adc61c


CB-6178 Plugman does not cache downloaded plugins

close #70


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/34221b31
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/34221b31
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/34221b31

Branch: refs/heads/browserify
Commit: 34221b31e9d376656fee7863eb98de42a5d635fa
Parents: c14f6b8
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Sun Apr 6 15:55:59 2014 +0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Apr 16 15:36:12 2014 -0400

----------------------------------------------------------------------
 src/registry/registry.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/34221b31/src/registry/registry.js
----------------------------------------------------------------------
diff --git a/src/registry/registry.js b/src/registry/registry.js
index 3b1a973..e0d733d 100644
--- a/src/registry/registry.js
+++ b/src/registry/registry.js
@@ -52,7 +52,7 @@ function fetchPackage(info, cl) {
     if(fs.existsSync(cached)) {
         d.resolve(cached);
     } else {
-        var download_dir = path.join(os.tmpdir(), info.name);
+        var download_dir = path.resolve(cached, '..');
         shell.mkdir('-p', download_dir);
 
         var req = makeRequest('GET', info.dist.tarball, function (err, res, body) {


Mime
View raw message