Projects
Kolab:16:Testing:Candidate
erlang-relx
relx-3.21.1-git.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File relx-3.21.1-git.patch of Package erlang-relx (Revision 1)
Currently displaying revision
1
,
Show latest
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl index 1f64886..030a9b3 100644 --- a/src/rlx_prv_assembler.erl +++ b/src/rlx_prv_assembler.erl @@ -507,7 +507,11 @@ include_erts(State, Release, OutputDir, RelDir) -> true -> ok; false -> SrcDir = filename:join([LocalErts, "src"]), - ok = ec_file:remove(SrcDir, [recursive]) + %% ensure the src folder exists before deletion + case ec_file:exists(SrcDir) of + true -> ok = ec_file:remove(SrcDir, [recursive]); + false -> ok + end end, case rlx_state:get(State, extended_start_script, false) of @@ -567,7 +571,7 @@ make_boot_script_variables(State) -> % (dictated by erl.ini [erlang] Rootdir=) and so a boot variable is made % pointing to the release directory % On non-Windows, $ROOT is set by the ROOTDIR environment variable as the - % release directory, so a boot variable is made pointing to the erts + % release directory, so a boot variable is made pointing to the erts % directory. % NOTE the boot variable can point to either the release/erts root directory % or the release/erts lib directory, as long as the usage here matches the
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.