Repository: couchdb-couch-plugins Updated Branches: refs/heads/fix-deprecations [created] ce245de2f
fix deprecations 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/ce245de2 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/tree/ce245de2 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/diff/ce245de2 Branch: refs/heads/fix-deprecations Commit: ce245de2f6afe663f660f62b08ef08c1d847d2ee Parents: 2b2933e Author: Robert Newson <[email protected]> Authored: Sat Jun 20 16:44:03 2015 +0100 Committer: Robert Newson <[email protected]> Committed: Sat Jun 20 16:44:03 2015 +0100 ---------------------------------------------------------------------- src/couch_plugins.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/blob/ce245de2/src/couch_plugins.erl ---------------------------------------------------------------------- diff --git a/src/couch_plugins.erl b/src/couch_plugins.erl index c6dad48..139a878 100644 --- a/src/couch_plugins.erl +++ b/src/couch_plugins.erl @@ -231,7 +231,7 @@ do_verify_checksum(Filename, Checksum) -> couch_log:debug("Checking Filename: ~s", [Filename]), case file:read_file(Filename) of {ok, Data} -> - ComputedChecksum = binary_to_list(base64:encode(crypto:sha(Data))), + ComputedChecksum = binary_to_list(base64:encode(crypto:hash(sha, Data))), case ComputedChecksum of Checksum -> ok; _Else ->
