mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +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 =
|
GlobalDepsFilter =
|
||||||
fun(Deps) ->
|
fun(Deps) ->
|
||||||
DepNames = lists:map(fun({DepName, _, _}) -> DepName;
|
DepNames = lists:map(fun({DepName, _, _}) -> DepName;
|
||||||
({DepName, _}) -> DepName
|
({DepName, _}) -> DepName;
|
||||||
|
(DepName) -> DepName
|
||||||
end, Deps),
|
end, Deps),
|
||||||
lists:filtermap(fun(Dep) ->
|
lists:filtermap(fun(Dep) ->
|
||||||
case LibDir(atom_to_list(Dep), "") of
|
case LibDir(atom_to_list(Dep), "") of
|
||||||
@ -357,7 +358,8 @@ ProcessRelx = fun(Relx, Deps) ->
|
|||||||
_ -> []
|
_ -> []
|
||||||
end,
|
end,
|
||||||
DepApps = lists:map(fun({DepName, _, _}) -> DepName;
|
DepApps = lists:map(fun({DepName, _, _}) -> DepName;
|
||||||
({DepName, _}) -> DepName
|
({DepName, _}) -> DepName;
|
||||||
|
(DepName) -> DepName
|
||||||
end, Deps),
|
end, Deps),
|
||||||
[{release, NameVersion, DefaultApps ++ VarsApps ++ ProfileApps ++ DepApps} | RelxTail]
|
[{release, NameVersion, DefaultApps ++ VarsApps ++ ProfileApps ++ DepApps} | RelxTail]
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user