|
@@ -39,7 +39,7 @@ fetch_dep(Cwd, Config, ConfigFile, Name, Cmd, Uri, Co, Cache) ->
|
|
|
Dir -> filename:join([Dir,get_publisher(Uri),Name]) end,
|
|
|
|
|
|
Opts = ["clone", Uri, TrunkPath ],
|
|
|
- io:format("dependency: ~s~n", [Name]),
|
|
|
+ io:format("==> dependency: ~p tag: ~p~n", [Uri,Co]),
|
|
|
%% fetch
|
|
|
mad_utils:exec(Cmd, Opts),
|
|
|
put(Name, fetched),
|
|
@@ -57,9 +57,7 @@ fetch_dep(Cwd, Config, ConfigFile, Name, Cmd, Uri, Co, Cache) ->
|
|
|
-spec build_dep(directory(), any(), string(), string(), string(), string(), string(), string()) -> ok.
|
|
|
build_dep(Cwd, Conf, _ConfFile, Publisher, Name, Cmd, Co, Dir) ->
|
|
|
TrunkPath = filename:join([Dir, Publisher, Name]),
|
|
|
- io:format("Cache Dir: ~p~n",[TrunkPath]),
|
|
|
DepsDir = filename:join([mad_utils:get_value(deps_dir, Conf, ["deps"]),Name]),
|
|
|
- io:format("Deps Dir: ~p~n",[DepsDir]),
|
|
|
mad_utils:exec("cp", ["-r", TrunkPath, DepsDir]),
|
|
|
ok = file:set_cwd(DepsDir),
|
|
|
mad_utils:exec(Cmd, ["checkout", lists:concat([Co])]),
|