Skip to content

Commit

Permalink
Merge pull request #39 from UncleGrumpy/fix_external
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGrumpy authored Jan 3, 2025
2 parents 5e49337 + acb401b commit cf4e025
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/atomvm_packbeam_provider.erl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]).

-define(DEFAULT_OPTS, #{
external_avms => [],
external => [],
force => false,
prune => false,
start => undefined,
Expand Down Expand Up @@ -108,7 +108,7 @@ do(State) ->
ok = do_packbeam(
rebar_state:project_apps(State),
lists:usort(rebar_state:all_deps(State)),
maps:get(external_avms, Opts),
maps:get(external, Opts),
maps:get(prune, Opts),
maps:get(force, Opts),
get_start_module(Opts),
Expand Down Expand Up @@ -153,13 +153,13 @@ squash_external_avm({external, AVMPath}, Accum) ->
StrippedPath = filename:absname(string:strip(AVMPath, both)),
case filelib:is_file(StrippedPath) of
true ->
case proplists:get_value(external_avms, Accum) of
case proplists:get_value(external, Accum) of
undefined ->
[{external_avms, [StrippedPath]} | Accum];
[{external, [StrippedPath]} | Accum];
OtherAVMs ->
[
{external_avms, [StrippedPath | OtherAVMs]}
| proplists:delete(external_avms, Accum)
{external, [StrippedPath | OtherAVMs]}
| proplists:delete(external, Accum)
]
end;
_ ->
Expand Down

0 comments on commit cf4e025

Please sign in to comment.