You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2020/01/14 09:00:11 UTC

[couchdb] 01/01: More way to detect presence of hastings for Ken

This is an automated email from the ASF dual-hosted git repository.

jiangphcn pushed a commit to branch couchdb-ken-hastings
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d58116197c1bf578190396512e1f67ce5b30fe20
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Tue Jan 14 16:55:19 2020 +0800

    More way to detect presence of hastings for Ken
    
    After moving ken from https://github.com/apache/couchdb-ken to
    https://github.com/apache/couchdb/tree/master/src/ken. The directory
    structure related to ken is changed for downstream including Cloudant.
    Increase more way to detect presence of hastings for Ken so that
    Ken can work correctly for geospatial index.
---
 src/ken/rebar.config.script | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ken/rebar.config.script b/src/ken/rebar.config.script
index 26d6f4c..b514b96 100644
--- a/src/ken/rebar.config.script
+++ b/src/ken/rebar.config.script
@@ -11,7 +11,8 @@
 % the License.
 
 HaveDreyfus = element(1, file:list_dir("../dreyfus")) == ok.
-HaveHastings = element(1, file:list_dir("../hastings")) == ok.
+HaveHastings = (element(1, file:list_dir("../hastings")) == ok) orelse
+    (element(1, file:list_dir("../../../hastings")) == ok).
 
 CurrOpts = case lists:keyfind(erl_opts, 1, CONFIG) of
     {erl_opts, Opts} -> Opts;