summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Bouchard <jbouchard@genetec.com>2018-03-16 14:23:43 -0400
committerJean Bouchard <jbouchard@genetec.com>2018-03-16 14:23:43 -0400
commit4a35276bdf93869f95344eaafb2571d3c731a615 (patch)
tree5d2966f156d6046a935fc7907f898426a830b4ec
parent02a02d729545fa08d20402fec6e295a53caae43e (diff)
remove the .app from app_info
-rw-r--r--src/rebar_app_discover.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index 1c02a48..441521b 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -411,12 +411,13 @@ try_handle_app_src_file(_AppInfo, _, _AppDir, _AppSrcFile, valid) ->
false;
try_handle_app_src_file(AppInfo, _, AppDir, [File], Validate) when Validate =:= invalid
; Validate =:= all ->
- AppInfo1 = create_app_info(AppInfo, AppDir, File),
+ AppInfo1 = rebar_app_info:app_file(AppInfo, undefined),
+ AppInfo2 = create_app_info(AppInfo1, AppDir, File),
case filename:extension(File) of
".script" ->
- {true, rebar_app_info:app_file_src_script(AppInfo1, File)};
+ {true, rebar_app_info:app_file_src_script(AppInfo2, File)};
_ ->
- {true, rebar_app_info:app_file_src(AppInfo1, File)}
+ {true, rebar_app_info:app_file_src(AppInfo2, File)}
end;
try_handle_app_src_file(_AppInfo, _, _AppDir, Other, _Validate) ->
throw({error, {multiple_app_files, Other}}).