mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +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:
parent
c333cc0776
commit
16f758e13f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user