diff options
author | Eric <[email protected]> | 2013-02-06 14:21:30 -0800 |
---|---|---|
committer | Eric <[email protected]> | 2013-02-06 14:21:30 -0800 |
commit | 9c88211a86da5812272df0fd0bd82ace3c6232ed (patch) | |
tree | 6254184dc8f63c14405aad67237ce1cca6037c2b /src | |
parent | a90291da9eb49e36e17c13afc31517bb636e6426 (diff) | |
download | relx-9c88211a86da5812272df0fd0bd82ace3c6232ed.tar.gz relx-9c88211a86da5812272df0fd0bd82ace3c6232ed.tar.bz2 relx-9c88211a86da5812272df0fd0bd82ace3c6232ed.zip |
fix bug in app version comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/rcl_rel_discovery.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcl_rel_discovery.erl b/src/rcl_rel_discovery.erl index 0fbcf23..0f923a0 100644 --- a/src/rcl_rel_discovery.erl +++ b/src/rcl_rel_discovery.erl @@ -144,7 +144,7 @@ resolve_apps([], _AppMeta, Release, Acc) -> rcl_release:application_details(Release, Acc); resolve_apps([AppInfo | Apps], AppMeta, Release, Acc) -> AppName = erlang:element(1, AppInfo), - AppVsn = erlang:element(2, AppInfo), + AppVsn = ec_semver:parse(erlang:element(2, AppInfo)), case find_app(AppName, AppVsn, AppMeta) of Error = {error, _} -> Error; @@ -154,8 +154,8 @@ resolve_apps([AppInfo | Apps], AppMeta, Release, Acc) -> find_app(AppName, AppVsn, AppMeta) -> case ec_lists:find(fun(App) -> - NAppName = rcl_app:name(App), - NAppVsn = rcl_app:version(App), + NAppName = rcl_app_info:name(App), + NAppVsn = rcl_app_info:vsn(App), AppName == NAppName andalso AppVsn == NAppVsn end, AppMeta) of |