25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Support to provide only the dependency name

This is used in ejabberd-contrib repository's ci.yml,
and useful for a custom development that doesn't require rebar2 support.
This commit is contained in:
Badlop 2023-06-09 17:27:48 +02:00
parent c333cc0776
commit 16f758e13f

View File

@ -232,7 +232,8 @@ LibDir = fun(Name, Suffix) ->
GlobalDepsFilter =
fun(Deps) ->
DepNames = lists:map(fun({DepName, _, _}) -> DepName;
({DepName, _}) -> DepName
({DepName, _}) -> DepName;
(DepName) -> DepName
end, Deps),
lists:filtermap(fun(Dep) ->
case LibDir(atom_to_list(Dep), "") of
@ -357,7 +358,8 @@ ProcessRelx = fun(Relx, Deps) ->
_ -> []
end,
DepApps = lists:map(fun({DepName, _, _}) -> DepName;
({DepName, _}) -> DepName
({DepName, _}) -> DepName;
(DepName) -> DepName
end, Deps),
[{release, NameVersion, DefaultApps ++ VarsApps ++ ProfileApps ++ DepApps} | RelxTail]
end,