You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2019/10/21 17:23:50 UTC
[couchdb-ken] branch ken-dreyfus-hastings created (now c800e4a)
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a change to branch ken-dreyfus-hastings
in repository https://gitbox.apache.org/repos/asf/couchdb-ken.git.
at c800e4a Detect dreyfus/hastings correctly
This branch includes the following new commits:
new c800e4a Detect dreyfus/hastings correctly
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-ken] 01/01: Detect dreyfus/hastings correctly
Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch ken-dreyfus-hastings
in repository https://gitbox.apache.org/repos/asf/couchdb-ken.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;