From 90d2ce5e0770be25179376af87ce861c33c1ba14 Mon Sep 17 00:00:00 2001 From: joewilliams Date: Fri, 25 Feb 2011 10:16:52 -0500 Subject: [PATCH] Ignore app files not in ebin --- src/rebar_appups.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rebar_appups.erl b/src/rebar_appups.erl index ab5af29..ec1df0a 100644 --- a/src/rebar_appups.erl +++ b/src/rebar_appups.erl @@ -56,10 +56,10 @@ "Reltool and .rel release names do not match~n", []), %% Get lists of the old and new app files - OldAppFiles = rebar_utils:find_files( - filename:join([OldVerPath, "lib"]), "^.*.app$"), - NewAppFiles = rebar_utils:find_files( - filename:join([NewName, "lib"]), "^.*.app$"), + OldAppFiles = filelib:wildcard( + filename:join([OldVerPath, "lib", "*", "ebin", "*.app"])), + NewAppFiles = filelib:wildcard( + filename:join([NewName, "lib", "*", "ebin", "*.app"])), %% Find all the apps that have been upgraded UpgradedApps = get_upgraded_apps(OldAppFiles, NewAppFiles),