aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_prv_assembler.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2012-09-19 18:50:56 -0700
committerEric <[email protected]>2012-09-19 18:50:56 -0700
commit13b65ac87e281e846820bbef8df1a94b81fcb5ef (patch)
tree2ac4836c41daf501bf2c156d49e61a67aaba3e29 /src/rcl_prv_assembler.erl
parent6ee94839094b00163e5f0a29a41dedb9ae67ca85 (diff)
downloadrelx-13b65ac87e281e846820bbef8df1a94b81fcb5ef.tar.gz
relx-13b65ac87e281e846820bbef8df1a94b81fcb5ef.tar.bz2
relx-13b65ac87e281e846820bbef8df1a94b81fcb5ef.zip
discover should not discover files in the output dir
Diffstat (limited to 'src/rcl_prv_assembler.erl')
-rw-r--r--src/rcl_prv_assembler.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rcl_prv_assembler.erl b/src/rcl_prv_assembler.erl
index 8143c97..d3fe4ad 100644
--- a/src/rcl_prv_assembler.erl
+++ b/src/rcl_prv_assembler.erl
@@ -119,11 +119,10 @@ copy_dir(AppDir, TargetDir, SubDir) ->
true ->
case filelib:is_dir(SubTarget) of
true ->
- ec_file:remove(SubTarget, [recursive]);
+ ok = ec_file:remove(SubTarget, [recursive]);
false ->
ok
end,
- ok = ec_file:mkdir_p(SubTarget),
case ec_file:copy(SubSource, SubTarget, [recursive]) of
{error, E} ->
?RCL_ERROR({ec_file_error, AppDir, TargetDir, E});
@@ -134,8 +133,6 @@ copy_dir(AppDir, TargetDir, SubDir) ->
ok
end.
-
-
create_release_info(State, Release, OutputDir) ->
RelName = erlang:atom_to_list(rcl_release:name(Release)),
ReleaseDir = filename:join([OutputDir,