Browse Source

Fix package upgrade (issue #1945) (#1946)

pull/1941/head
András Boroska 6 years ago
committed by Tristan Sloughter
parent
commit
5944b14f57
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/rebar_app_utils.erl

+ 1
- 2
src/rebar_app_utils.erl View File

@ -259,8 +259,7 @@ update_source(AppInfo, {pkg, PkgName, PkgVsn, Hash}, State) ->
maybe_warn_retired(PkgName, PkgVsn1, Hash, Retired),
PkgVsn2 = list_to_binary(lists:flatten(ec_semver:format(PkgVsn1))),
AppInfo1 = rebar_app_info:source(AppInfo, {pkg, PkgName, PkgVsn2, Hash1, RepoConfig}),
AppInfo2 = rebar_app_info:update_opts_deps(AppInfo1, Deps),
rebar_app_info:original_vsn(AppInfo2, PkgVsn2);
rebar_app_info:update_opts_deps(AppInfo1, Deps);
not_found ->
throw(?PRV_ERROR({missing_package, PkgName, PkgVsn}));
{error, {invalid_vsn, InvalidVsn}} ->

Loading…
Cancel
Save