aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_state.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-02-07 04:57:36 -0800
committerTristan Sloughter <[email protected]>2013-02-07 04:57:36 -0800
commit6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995 (patch)
tree93feb4e317d35d9d69443551b83175d21a0a0808 /src/rcl_state.erl
parent60b074edbb09b43618febdf8eb50a330db2aa677 (diff)
parent35040be995d9b2f1b3b601e69a998156145e1b35 (diff)
downloadrelx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.tar.gz
relx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.tar.bz2
relx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.zip
Merge pull request #27 from ericbmerritt/next
lots of bug fixes
Diffstat (limited to 'src/rcl_state.erl')
-rw-r--r--src/rcl_state.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rcl_state.erl b/src/rcl_state.erl
index 25497f8..6fd5655 100644
--- a/src/rcl_state.erl
+++ b/src/rcl_state.erl
@@ -65,7 +65,7 @@
action :: atom(),
output_dir :: file:name(),
lib_dirs=[] :: [file:name()],
- config_file=[] :: file:filename(),
+ config_file=[] :: file:filename() | undefined,
goals=[] :: [rcl_depsolver:constraint()],
providers = [] :: [rcl_provider:t()],
available_apps = [] :: [rcl_app_info:t()],
@@ -102,7 +102,7 @@ new(PropList, Target)
#state_t{log = proplists:get_value(log, PropList, rcl_log:new(error)),
output_dir=proplists:get_value(output_dir, PropList, ""),
lib_dirs=proplists:get_value(lib_dirs, PropList, ""),
- config_file=proplists:get_value(config, PropList, ""),
+ config_file=proplists:get_value(config, PropList, undefined),
action = Target,
goals=proplists:get_value(goals, PropList, []),
providers = [],
@@ -143,11 +143,11 @@ lib_dirs(#state_t{lib_dirs=LibDir}) ->
goals(#state_t{goals=TS}) ->
TS.
--spec config_file(t()) -> file:filename().
+-spec config_file(t()) -> file:filename() | undefined.
config_file(#state_t{config_file=ConfigFiles}) ->
ConfigFiles.
--spec config_file(t(), file:filename()) -> t().
+-spec config_file(t(), file:filename() | undefined) -> t().
config_file(State, ConfigFiles) ->
State#state_t{config_file=ConfigFiles}.