diff options
author | Eric <[email protected]> | 2012-12-30 19:15:01 -0500 |
---|---|---|
committer | Eric <[email protected]> | 2012-12-30 19:15:01 -0500 |
commit | 78ec90ae6084f44b5379bd4e9eebb79746f4a595 (patch) | |
tree | 124b7b8c8e22c0b93fbb0d538bcff349dac0b283 /src/rcl_prv_overlay.erl | |
parent | fbf58da536939dece9a6707b7ff39e12bf377d1c (diff) | |
download | relx-78ec90ae6084f44b5379bd4e9eebb79746f4a595.tar.gz relx-78ec90ae6084f44b5379bd4e9eebb79746f4a595.tar.bz2 relx-78ec90ae6084f44b5379bd4e9eebb79746f4a595.zip |
support only one config file in the system
Diffstat (limited to 'src/rcl_prv_overlay.erl')
-rw-r--r-- | src/rcl_prv_overlay.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcl_prv_overlay.erl b/src/rcl_prv_overlay.erl index 0e9781b..866ace5 100644 --- a/src/rcl_prv_overlay.erl +++ b/src/rcl_prv_overlay.erl @@ -196,7 +196,7 @@ generate_state_vars(State) -> {goals, [rcl_depsolver:format_constraint(Constraint) || Constraint <- rcl_state:goals(State)]}, {lib_dirs, rcl_state:lib_dirs(State)}, - {config_files, rcl_state:config_files(State)}, + {config_file, rcl_state:config_file(State)}, {providers, rcl_state:providers(State)}, {sys_config, rcl_state:sys_config(State)}, {root_dir, rcl_state:root_dir(State)}, @@ -295,6 +295,7 @@ do_individual_overlay(State, OverlayVars, {template, From, To}) -> copy_to(State, FromFile0, ToFile0) -> ToFile1 = absolutize(State, filename:join(rcl_state:output_dir(State), erlang:iolist_to_binary(ToFile0))), + FromFile1 = absolutize(State, FromFile0), ToFile2 = case is_directory(ToFile0, ToFile1) of false -> |