diff options
author | Ulf Wiger <ulf@feuerlabs.com> | 2015-11-05 17:29:22 +0100 |
---|---|---|
committer | Ulf Wiger <ulf@feuerlabs.com> | 2015-11-20 13:47:02 -0800 |
commit | ca1f0abd9f0f1478da8380bff28cb25aada34c1d (patch) | |
tree | 814c4a3c17b247cc300f62673771dad5a5c6ed77 /deps | |
parent | 1b44c2448344a10ae63904a796b6211c40a3f212 (diff) | |
download | rvi_core-ca1f0abd9f0f1478da8380bff28cb25aada34c1d.tar.gz |
All tests (incl remote method inv) pass
- No signatures on messages (dlink_tls)
- dlink_bt wasn't actually tested (test case passed erroneously)
- added proto_msgpack component
- fixed sneaky bug in 'setup'
Diffstat (limited to 'deps')
-rw-r--r-- | deps/setup/src/setup.erl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/deps/setup/src/setup.erl b/deps/setup/src/setup.erl index 881e5a7..43b581a 100644 --- a/deps/setup/src/setup.erl +++ b/deps/setup/src/setup.erl @@ -162,6 +162,12 @@ -include_lib("eunit/include/eunit.hrl"). -endif. +-define(if_verbose(Expr), + case get(verbose) of + true -> Expr; + _ -> ok + end). + %% @spec start(Type, Args) -> {ok, pid()} %% @doc Application start function. %% @end @@ -1400,9 +1406,11 @@ expand_config_script([{include, F}|T], Name, Acc, Opts) -> Incl = read_config_script(F, Name, Opts), expand_config_script(T, Name, [Incl|Acc], Opts); expand_config_script([{include_lib, LibF}|T], Name, Acc, Opts) -> + ?if_verbose(io:fwrite("include_lib: ~s~n", [LibF])), case filename:split(LibF) of [App|Tail] -> - try code:lib_dir(to_atom(App)) of + ?if_verbose(io:fwrite("lib: ~s~n", [App])), + try code:lib_dir(App) of {error, bad_name} -> setup_lib:abort( "Error including conf (~s): no such lib (~s)~n", @@ -1426,12 +1434,6 @@ expand_config_script([H|T], Name, Acc, Opts) -> expand_config_script([], _, Acc, _) -> lists:flatten(lists:reverse(Acc)). -to_atom(B) when is_binary(B) -> - binary_to_existing_atom(B, latin1); -to_atom(L) when is_list(L) -> - list_to_existing_atom(L). - - script_vars(Vs) -> lists:foldl(fun({K,V}, Acc) -> |