aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_state.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-01-04 10:33:54 -0500
committerEric <[email protected]>2013-01-04 10:52:19 -0500
commit3a5cb6adf215e760068c9d3e7a07eb4f971cabf0 (patch)
tree718eb042995b56fd2145c0d7a932d1aecd53e0d5 /src/rcl_state.erl
parent344fa86b23205eebc3233cf9c69a8e9e145714ac (diff)
downloadrelx-3a5cb6adf215e760068c9d3e7a07eb4f971cabf0.tar.gz
relx-3a5cb6adf215e760068c9d3e7a07eb4f971cabf0.tar.bz2
relx-3a5cb6adf215e760068c9d3e7a07eb4f971cabf0.zip
provide the erlang lib dir and cwd as working libraries
This happens for every call unless the user passes --disable-default-libs to relcool or {disable_default_libs, true} in the relcool config.
Diffstat (limited to 'src/rcl_state.erl')
-rw-r--r--src/rcl_state.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rcl_state.erl b/src/rcl_state.erl
index 28effbd..842b635 100644
--- a/src/rcl_state.erl
+++ b/src/rcl_state.erl
@@ -108,7 +108,9 @@ new(PropList, Target) when erlang:is_list(PropList) ->
root_dir = proplists:get_value(root_dir, PropList, Root),
default_release={proplists:get_value(relname, PropList, undefined),
proplists:get_value(relvsn, PropList, undefined)}},
- create_logic_providers(State0).
+ rcl_state:put(create_logic_providers(State0),
+ disable_default_libs,
+ proplists:get_value(disable_default_libs, PropList, false)).
%% @doc the application overrides for the system
-spec overrides(t()) -> [{AppName::atom(), Directory::file:filename()}].