Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B79B11EEC for ; Thu, 24 Apr 2014 21:13:29 +0000 (UTC) Received: (qmail 4003 invoked by uid 500); 24 Apr 2014 21:13:26 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 3906 invoked by uid 500); 24 Apr 2014 21:13:24 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 3892 invoked by uid 99); 24 Apr 2014 21:13:24 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 21:13:24 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 25057991EE4; Thu, 24 Apr 2014 21:13:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anis@apache.org To: commits@cordova.apache.org Date: Thu, 24 Apr 2014 21:13:24 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/7] git commit: CB-6178 Plugman does not cache downloaded plugins 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 Authored: Sun Apr 6 15:55:59 2014 +0400 Committer: Andrew Grieve 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) {