aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-12-25 12:05:06 -0800
committerJordan Wilberding <[email protected]>2014-12-25 12:05:06 -0800
commitba9309ca2431df62ab6a0008ae5a96a165675d2b (patch)
treef0382f81d8e6952974305a6d6cc1482fd9ae47ba
parentec06fbcaf9a79ba3b5f34b4a597da4a1e7e04286 (diff)
parente6344b033ddad5681b04e8492df019de5ef92a50 (diff)
downloadrelx-ba9309ca2431df62ab6a0008ae5a96a165675d2b.tar.gz
relx-ba9309ca2431df62ab6a0008ae5a96a165675d2b.tar.bz2
relx-ba9309ca2431df62ab6a0008ae5a96a165675d2b.zip
Merge pull request #285 from tsloughter/master
only unique lib dirs should be used to save time/confusion
-rw-r--r--src/rlx_prv_app_discover.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_prv_app_discover.erl b/src/rlx_prv_app_discover.erl
index 8e2bd24..9a5da4d 100644
--- a/src/rlx_prv_app_discover.erl
+++ b/src/rlx_prv_app_discover.erl
@@ -55,7 +55,7 @@ init(State) ->
%% looking for OTP Applications
-spec do(rlx_state:t()) -> {ok, rlx_state:t()} | relx:error().
do(State0) ->
- LibDirs = get_lib_dirs(State0),
+ LibDirs = lists:usort(get_lib_dirs(State0)),
case rlx_app_discovery:do(State0, LibDirs) of
{ok, AppMeta} ->
State1 = rlx_state:available_apps(State0, AppMeta),