summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralisdair sullivan <alisdairsullivan@yahoo.ca>2015-03-23 22:24:33 -0700
committeralisdair sullivan <alisdairsullivan@yahoo.ca>2015-03-24 22:01:28 -0700
commit044b6580e75a33fed26303eebb5a3648f8b022d3 (patch)
tree3c29d61f91c3763f284627aa1d4a117af64be16c /src
parentc5bc19b021da907e36135c174d85896be3043218 (diff)
filter checkapps via `rebar_app_info:is_checkout` rather than
matching directory paths
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_eunit.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index 8ac0187..b196df8 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -142,10 +142,8 @@ filter_checkouts(Apps) -> filter_checkouts(Apps, []).
filter_checkouts([], Acc) -> lists:reverse(Acc);
filter_checkouts([App|Rest], Acc) ->
- AppDir = filename:absname(rebar_app_info:dir(App)),
- CheckoutsDir = filename:absname("_checkouts"),
- case lists:prefix(CheckoutsDir, AppDir) of
- true -> filter_checkouts(Rest, Acc);
+ case rebar_app_info:is_checkout(App) of
+ true -> filter_checkouts(Rest, Acc);
false -> filter_checkouts(Rest, [App|Acc])
end.