couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch-plugins commit: updated refs/heads/master to f5a7223
Date Mon, 13 Oct 2014 16:28:38 GMT
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 <kxepal@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 <reinecke@posteo.de>
Authored: Tue Oct 7 13:31:17 2014 +0200
Committer: Alexander Shorin <kxepal@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);


Mime
View raw message