mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-06 04:52:26 +00:00
Module renaming
This commit is contained in:
parent
67a280f5da
commit
9423fb1b37
18 changed files with 1629 additions and 0 deletions
34
vpkPackageFileParser.Mod
Normal file
34
vpkPackageFileParser.Mod
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
MODULE vpkPackageFileParser;
|
||||
IMPORT
|
||||
vpkJsonParser,
|
||||
vpkFileManager,
|
||||
vpkHttp,
|
||||
vpkLogger,
|
||||
vpkDependencyResolver,
|
||||
vpkSettings;
|
||||
CONST
|
||||
MAXARRAYNUMBER = 1000;
|
||||
PROCEDURE install*;
|
||||
VAR
|
||||
jsonData: ARRAY MAXARRAYNUMBER OF CHAR;
|
||||
success: BOOLEAN;
|
||||
BEGIN
|
||||
vpkLogger.Log("Starting install process");
|
||||
success := vpkFileManager.Read(vpkSettings.packageFileName, jsonData);
|
||||
|
||||
IF ~success THEN vpkLogger.Log("Some ERROR occured while reading VERSIONFILE") END;
|
||||
ASSERT(success);
|
||||
|
||||
vpkLogger.Log("Starting resolving dependencies");
|
||||
|
||||
vpkDependencyResolver.ResolveVersionFiles(jsonData);
|
||||
vpkDependencyResolver.ResolvePackages();
|
||||
vpkLogger.Log("======================");
|
||||
vpkLogger.Log("======================");
|
||||
vpkLogger.Log("Installation complete");
|
||||
vpkLogger.Log("Thanks for using OPIUM!");
|
||||
END install;
|
||||
|
||||
BEGIN
|
||||
|
||||
END vpkPackageFileParser.
|
||||
Loading…
Add table
Add a link
Reference in a new issue