mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-06 04:52:26 +00:00
fetch works
This commit is contained in:
parent
c95ecfc60b
commit
4dfb4975ff
9 changed files with 171 additions and 41 deletions
|
|
@ -22,4 +22,19 @@ BEGIN
|
|||
END;
|
||||
END sync;
|
||||
|
||||
PROCEDURE fetch*(name, url, typ, dst: ARRAY OF CHAR);
|
||||
BEGIN
|
||||
IF dst = "" THEN
|
||||
vpkEnv.mkdefPkgDirPath(name, dst);
|
||||
ELSE
|
||||
vpkEnv.mkPkgDirPath(name, dst);
|
||||
END;
|
||||
|
||||
IF typ = vpkSettings.rmtTypGitVal THEN
|
||||
vpkGit.fetchRepo(url, dst);
|
||||
ELSE
|
||||
Out.String("TODO: not a git url"); Out.Ln
|
||||
END
|
||||
END fetch;
|
||||
|
||||
END vpkSyncer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue