From 9c88211a86da5812272df0fd0bd82ace3c6232ed Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 6 Feb 2013 14:21:30 -0800 Subject: fix bug in app version comparison --- src/rcl_rel_discovery.erl | 6 +++--- 1 file 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 -- cgit v1.2.3