mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-06 04:52:26 +00:00
added branch concept. vipack now can pull for branch.
This commit is contained in:
parent
0990748ecb
commit
8ff51322f4
7 changed files with 39 additions and 31 deletions
|
|
@ -44,7 +44,7 @@ VAR
|
|||
depTree: vpkdepTree.TdepTree;
|
||||
dep: vpkdepTree.Tdep;
|
||||
i: LONGINT;
|
||||
URI: ARRAY 128 OF CHAR;
|
||||
URI, branch: ARRAY 128 OF CHAR;
|
||||
typ: ARRAY 16 OF CHAR;
|
||||
BEGIN
|
||||
depTree := resolve(package);
|
||||
|
|
@ -52,8 +52,8 @@ BEGIN
|
|||
i := 0;
|
||||
REPEAT
|
||||
dep := vpkdepTree.Get(depTree, i);
|
||||
vpkJsonDepRetriever.getURIandType(dep, URI, typ);
|
||||
vpkSyncer.fetch(dep.name^, URI, typ, prefix);
|
||||
vpkJsonDepRetriever.getURIandType(dep, URI, typ, branch);
|
||||
vpkSyncer.fetch(dep.name^, URI, typ, prefix, branch);
|
||||
INC(i)
|
||||
UNTIL i = depTree.Count;
|
||||
END fetch;
|
||||
|
|
@ -63,7 +63,7 @@ VAR
|
|||
depTree: vpkdepTree.TdepTree;
|
||||
dep: vpkdepTree.Tdep;
|
||||
i, j: LONGINT;
|
||||
URI: ARRAY 128 OF CHAR;
|
||||
URI, branch: ARRAY 128 OF CHAR;
|
||||
typ: ARRAY 16 OF CHAR;
|
||||
keys, values: StringList.TStringList;
|
||||
k, v: StringList.pstring;
|
||||
|
|
@ -81,8 +81,8 @@ BEGIN
|
|||
i := 0;
|
||||
REPEAT
|
||||
dep := vpkdepTree.Get(depTree, i);
|
||||
vpkJsonDepRetriever.getURIandType(dep, URI, typ);
|
||||
vpkSyncer.fetch(dep.name^, URI, typ, prefix);
|
||||
vpkJsonDepRetriever.getURIandType(dep, URI, typ, branch);
|
||||
vpkSyncer.fetch(dep.name^, URI, typ, prefix, branch);
|
||||
b := FALSE;
|
||||
b := vpkJsonDepRetriever.getBuildInfo(dep, keys, values);
|
||||
IF b THEN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue