From 044b6580e75a33fed26303eebb5a3648f8b022d3 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Mon, 23 Mar 2015 22:24:33 -0700 Subject: filter checkapps via `rebar_app_info:is_checkout` rather than matching directory paths --- src/rebar_prv_eunit.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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. -- cgit v1.1