aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_assembler.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-13 13:55:14 -0500
committerTristan Sloughter <[email protected]>2013-09-13 13:55:14 -0500
commit01504d1fb05430bc0fe5f2b30ebd57747a080d84 (patch)
tree5ac94bf5ec27708c85db84a96ad95e3847f52c3c /src/rlx_prv_assembler.erl
parent5a4db4623a6250b97913863a2e17e601ab2e30c7 (diff)
downloadrelx-01504d1fb05430bc0fe5f2b30ebd57747a080d84.tar.gz
relx-01504d1fb05430bc0fe5f2b30ebd57747a080d84.tar.bz2
relx-01504d1fb05430bc0fe5f2b30ebd57747a080d84.zip
replace use of wildcard ** since it is not in <R16 Erlang
Diffstat (limited to 'src/rlx_prv_assembler.erl')
-rw-r--r--src/rlx_prv_assembler.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index e0ddb01..1ef0840 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -451,12 +451,12 @@ make_tar(State, Release, OutputDir) ->
{erts, ErtsDir},
{outdir, OutputDir}]) of
ok ->
- TempDir = filename:join(OutputDir, integer_to_list(erlang:phash2(make_ref()))),
+ TempDir = ec_file:insecure_mkdtemp(),
try
update_tar(State, TempDir, OutputDir, Name, Vsn, ErtsVersion)
catch
E:R ->
- file:del_dir(TempDir),
+ ec_file:remove(TempDir, [recursive]),
?RLX_ERROR({tar_generation_error, E, R})
end;
{ok, Module, Warnings} ->
@@ -484,7 +484,7 @@ update_tar(State, TempDir, OutputDir, Name, Vsn, ErtsVersion) ->
{"bin", filename:join([OutputDir, "bin"])}], [compressed]),
rlx_log:info(rlx_state:log(State),
"tarball ~s successfully created!~n", [TarFile]),
- rlx_util:delete_dir(TempDir),
+ ec_file:remove(TempDir, [recursive]),
{ok, State}.
make_upfrom_script(State, Release, UpFrom) ->