diff options
author | Siri Hansen <[email protected]> | 2011-11-30 10:53:43 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2011-11-30 10:53:43 +0100 |
commit | ca03aa3d8a97e5d63c1055c19d2bd5a037acc28f (patch) | |
tree | 947f444bb0978e3f627f6ccd0459eff40c5224b5 /lib/sasl/src/systools_make.erl | |
parent | f7c881208154dcae6d0b753a160eb771710bd47a (diff) | |
parent | 09c280951476aa6c30fd3aa54d99ddc6ced64ccf (diff) | |
download | otp-ca03aa3d8a97e5d63c1055c19d2bd5a037acc28f.tar.gz otp-ca03aa3d8a97e5d63c1055c19d2bd5a037acc28f.tar.bz2 otp-ca03aa3d8a97e5d63c1055c19d2bd5a037acc28f.zip |
Merge branch 'siri/sasl/duplicate-rel-file/OTP-9746'
* siri/sasl/duplicate-rel-file/OTP-9746:
Add copy of rel file in releases/<vsn> in release tar file
Diffstat (limited to 'lib/sasl/src/systools_make.erl')
-rw-r--r-- | lib/sasl/src/systools_make.erl | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/sasl/src/systools_make.erl b/lib/sasl/src/systools_make.erl index 1c14027805..8fd90c50f9 100644 --- a/lib/sasl/src/systools_make.erl +++ b/lib/sasl/src/systools_make.erl @@ -1638,8 +1638,19 @@ add_system_files(Tar, RelName, Release, Path1) -> SVsn = Release#release.vsn, RelName0 = filename:basename(RelName), + RelVsnDir = filename:join("releases", SVsn), + + %% OTP-9746: store rel file in releases/<vsn> + %% Adding rel file to + %% 1) releases directory - so it can be easily extracted + %% separately (see release_handler:unpack_release) + %% 2) releases/<vsn> - so the file must not be explicitly moved + %% after unpack. add_to_tar(Tar, RelName ++ ".rel", filename:join("releases", RelName0 ++ ".rel")), + add_to_tar(Tar, RelName ++ ".rel", + filename:join(RelVsnDir, RelName0 ++ ".rel")), + %% OTP-6226 Look for the system files not only in cwd %% -- @@ -1655,26 +1666,25 @@ add_system_files(Tar, RelName, Release, Path1) -> [RelDir, "."|Path1] end, - ToDir = filename:join("releases", SVsn), case lookup_file(RelName0 ++ ".boot", Path) of false -> throw({error, {tar_error,{add, RelName0++".boot",enoent}}}); Boot -> - add_to_tar(Tar, Boot, filename:join(ToDir, "start.boot")) + add_to_tar(Tar, Boot, filename:join(RelVsnDir, "start.boot")) end, case lookup_file("relup", Path) of false -> ignore; Relup -> - add_to_tar(Tar, Relup, filename:join(ToDir, "relup")) + add_to_tar(Tar, Relup, filename:join(RelVsnDir, "relup")) end, case lookup_file("sys.config", Path) of false -> ignore; Sys -> - add_to_tar(Tar, Sys, filename:join(ToDir, "sys.config")) + add_to_tar(Tar, Sys, filename:join(RelVsnDir, "sys.config")) end, ok. |