You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/10/13 18:28:38 UTC

couch-plugins commit: updated refs/heads/master to f5a7223

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 <kx...@apache.org>


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 <re...@posteo.de>
Authored: Tue Oct 7 13:31:17 2014 +0200
Committer: Alexander Shorin <kx...@apache.org>
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);