aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Best <[email protected]>2015-02-23 08:00:37 -0800
committerDavid Best <[email protected]>2015-02-23 08:23:21 -0800
commit7ea9ea0ed2f5c56774e678ff9c74b88752584d8f (patch)
tree07f7b0f0f336ea2fcd1eb5629d25f412cfa56ce6
parenta2e8eaa4fb6307e0d71ba932de6eb9378ddae937 (diff)
downloadrelx-7ea9ea0ed2f5c56774e678ff9c74b88752584d8f.tar.gz
relx-7ea9ea0ed2f5c56774e678ff9c74b88752584d8f.tar.bz2
relx-7ea9ea0ed2f5c56774e678ff9c74b88752584d8f.zip
prevent files in the bin directory from being duplicated in the .tar
update_tar/6 first adds the bin directory, then adds overlay files. If an overlay copies to bin, it will be added again.
-rw-r--r--src/rlx_prv_archive.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rlx_prv_archive.erl b/src/rlx_prv_archive.erl
index 62cc37c..7ed8f4d 100644
--- a/src/rlx_prv_archive.erl
+++ b/src/rlx_prv_archive.erl
@@ -156,6 +156,8 @@ to({mkdir, To}) ->
to({template, _, To}) ->
To.
+filter({_, _, "bin/"++_}) ->
+ false;
filter({copy, _, _}) ->
true;
filter({mkdir, _}) ->