diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-09-20 18:13:15 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-09-20 18:13:15 -0400 |
commit | 5159939b0b59360bab5d9874bfd10d409aa947b4 (patch) | |
tree | 5dbbd6012935364fd367cb19df0b2488f37fd6a2 /src/rebar_app_discover.erl | |
parent | fb63743bc6f8dbdf07efda65e78ff68567a8d5d5 (diff) | |
parent | 8421d5ce817bc201c5fa946baed205b596f498d6 (diff) |
Merge pull request #822 from tsloughter/upgrade_app_src
handle case that upgraded app no longer has .app.src file
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r-- | src/rebar_app_discover.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl index 4f7442b..67acf54 100644 --- a/src/rebar_app_discover.erl +++ b/src/rebar_app_discover.erl @@ -229,7 +229,8 @@ try_handle_app_file(AppInfo0, [File], AppDir, AppSrcFile, _, Validate) -> [F] -> rebar_app_info:app_file_src(AppInfo1, F); [] -> - AppInfo1; + %% Set to undefined in case AppInfo previous had a .app.src + rebar_app_info:app_file_src(AppInfo1, undefined); Other when is_list(Other) -> throw({error, {multiple_app_files, Other}}) end, |