Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-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 40EFC179E9 for ; Mon, 13 Oct 2014 16:28:39 +0000 (UTC) Received: (qmail 52823 invoked by uid 500); 13 Oct 2014 16:28:39 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 52765 invoked by uid 500); 13 Oct 2014 16:28:39 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 52756 invoked by uid 99); 13 Oct 2014 16:28:39 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2014 16:28:39 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A2FD590DA4C; Mon, 13 Oct 2014 16:28:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: couch-plugins commit: updated refs/heads/master to f5a7223 Date: Mon, 13 Oct 2014 16:28:38 +0000 (UTC) Repository: couchdb-couch-plugins Updated Branches: refs/heads/master 0787a36e6 -> f5a72238b Fixed bad windows temp file Used filename:join to prevent duplicate slashes. Acquired temp dir from mochitemp:gettempdir. Signed-off-by: Alexander Shorin Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/commit/f5a72238 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/tree/f5a72238 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/diff/f5a72238 Branch: refs/heads/master Commit: f5a72238b8183f02adff62f8d4fe73a9657b41a2 Parents: 0787a36 Author: Oscar Reinecke Authored: Tue Oct 7 13:31:17 2014 +0200 Committer: Alexander Shorin Committed: Mon Oct 13 20:28:00 2014 +0400 ---------------------------------------------------------------------- src/couch_plugins.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/blob/f5a72238/src/couch_plugins.erl ---------------------------------------------------------------------- diff --git a/src/couch_plugins.erl b/src/couch_plugins.erl index 0f7dbbe..c6dad48 100644 --- a/src/couch_plugins.erl +++ b/src/couch_plugins.erl @@ -180,7 +180,7 @@ delete_files(Name, Version) -> % downloads a pluygin .tar.gz into a local plugins directory -spec download(string()) -> ok | {error, string()}. download({Name, _BaseUrl, Version, _Checksums}=Plugin) -> - TargetFile = "/tmp/" ++ get_filename(Name, Version), + TargetFile = filename:join(mochitemp:gettempdir(), get_filename(Name, Version)), case file_exists(TargetFile) of %% wipe and redownload true -> file:delete(TargetFile);