aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_state.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-04-09 16:49:49 -0700
committerTristan Sloughter <[email protected]>2013-04-09 16:49:49 -0700
commitf34308e8f6f08ff3cb260481c7be90e0cbe76078 (patch)
treedb506faa552a61997c08d01f27c785d51bf06eb7 /src/rcl_state.erl
parentbd20c04683b700027ed75c090c9d4534b40b3d47 (diff)
parent10eb471cda3609156e21af93e04522543fb674c0 (diff)
downloadrelx-f34308e8f6f08ff3cb260481c7be90e0cbe76078.tar.gz
relx-f34308e8f6f08ff3cb260481c7be90e0cbe76078.tar.bz2
relx-f34308e8f6f08ff3cb260481c7be90e0cbe76078.zip
Merge pull request #51 from ericbmerritt/next
various bugfixes to the system
Diffstat (limited to 'src/rcl_state.erl')
-rw-r--r--src/rcl_state.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rcl_state.erl b/src/rcl_state.erl
index 6568541..7247818 100644
--- a/src/rcl_state.erl
+++ b/src/rcl_state.erl
@@ -103,7 +103,7 @@ new(PropList, Target)
State0 =
#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, ""),
+ lib_dirs=[to_binary(Dir) || Dir <- proplists:get_value(lib_dirs, PropList, [])],
config_file=proplists:get_value(config, PropList, undefined),
action = Target,
goals=proplists:get_value(goals, PropList, []),
@@ -292,6 +292,13 @@ create_logic_providers(State0) ->
State5#state_t{providers=[ConfigProvider, DiscoveryProvider,
ReleaseProvider, OverlayProvider, AssemblerProvider]}.
+to_binary(Dir)
+ when erlang:is_list(Dir) ->
+ erlang:list_to_binary(Dir);
+to_binary(Dir)
+ when erlang:is_binary(Dir) ->
+ Dir.
+
%%%===================================================================
%%% Test Functions
%%%===================================================================