Commit 7094afe9 authored by Nong Hoang Tu's avatar Nong Hoang Tu

fix some bugs

parent 1c221052
Pipeline #2112 canceled with stages
No preview for this file type
......@@ -116,20 +116,20 @@ proc processUpdateAll() =
logResult.retError(prjName)
proc pullProject(prjName, logPath: string) =
proc pullProject(prjName, logPath: string): int =
let
srcPath = dirName(sourceFolder)
var updater = initProject(srcPath, sessionLog, prjName)
var updater = initProject(srcPath, logPath, prjName)
updater.logNoti("Start working")
if not dirExists(updater.path):
updater.logError("Can't find source code folder")
return ERR
return -1
setCurrentDir(updater.path)
discard updater.srcPull()
return true
return 0
proc processPull(packages: seq[string]) =
......@@ -148,7 +148,7 @@ proc processPull(packages: seq[string]) =
if not dirExists(path):
discard
else:
pullProject(prjName, logPath)
discard pullProject(prjName, logPath)
proc processPullAll() =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment