You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/04/16 21:37:53 UTC

git commit: CB-6178 Plugman does not cache downloaded plugins

Repository: cordova-plugman
Updated Branches:
  refs/heads/master c14f6b884 -> 34221b31e


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/master
Commit: 34221b31e9d376656fee7863eb98de42a5d635fa
Parents: c14f6b8
Author: sgrebnov <v-...@microsoft.com>
Authored: Sun Apr 6 15:55:59 2014 +0400
Committer: Andrew Grieve <ag...@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) {