aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-02-01 09:06:08 -0800
committerJordan Wilberding <[email protected]>2015-02-01 09:06:08 -0800
commitd29eec5157b4f62d353a188b1fea9133bbae2056 (patch)
tree945164f61f0ba1de608f4061935f1f9557ed9673
parent3b6ff4aee99e154f6b5a19e14dfa8870b0de6889 (diff)
parentae06e452f651e252c7c0762f923efe2a214c8a9b (diff)
downloadrelx-d29eec5157b4f62d353a188b1fea9133bbae2056.tar.gz
relx-d29eec5157b4f62d353a188b1fea9133bbae2056.tar.bz2
relx-d29eec5157b4f62d353a188b1fea9133bbae2056.zip
Merge pull request #310 from tsloughter/action_order
fix target ordering to be the same as the user entered
-rw-r--r--src/rlx_cmd_args.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index 20ea3a9..2039b43 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -102,7 +102,7 @@ handle_config(Opts, Targets, CommandLineConfig) ->
end
end.
--spec convert_targets([string()]) -> {ok, release | relup} | relx:error().
+-spec convert_targets([string()]) -> {ok, [rlx_state:action()]} | relx:error().
convert_targets(Targets) ->
convert_targets(Targets, []).
@@ -111,7 +111,7 @@ convert_targets(Targets) ->
convert_targets([], []) ->
{ok, [release]};
convert_targets([], Acc) ->
- {ok, Acc};
+ {ok, lists:reverse(Acc)};
convert_targets(["release" | T], Acc) ->
convert_targets(T, [release | Acc]);
convert_targets(["relup" | T], Acc) ->