fetch works

This commit is contained in:
Norayr Chilingarian 2022-01-14 05:19:50 +04:00
parent c95ecfc60b
commit 4dfb4975ff
9 changed files with 171 additions and 41 deletions

View file

@ -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.