You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2019/11/22 19:13:14 UTC

[couchdb] 12/15: Detect dreyfus/hastings correctly

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

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

commit c800e4afcdab617ca3629bb7dcdc55209447d3d0
Author: Robert Newson <rn...@apache.org>
AuthorDate: Mon Oct 21 17:41:38 2019 +0100

    Detect dreyfus/hastings correctly
    
    The code:lib_dir test only works if those projects are compiled first,
    which is not guaranteed.
---
 rebar.config.script | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rebar.config.script b/rebar.config.script
index 4570bfc..26d6f4c 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -10,8 +10,8 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
-HaveDreyfus = code:lib_dir(dreyfus) /= {error, bad_name}.
-HaveHastings = code:lib_dir(hastings) /= {error, bad_name}.
+HaveDreyfus = element(1, file:list_dir("../dreyfus")) == ok.
+HaveHastings = element(1, file:list_dir("../hastings")) == ok.
 
 CurrOpts = case lists:keyfind(erl_opts, 1, CONFIG) of
     {erl_opts, Opts} -> Opts;