Commit 8d4b03e0 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Fix wrong path of gbp (bug: use uscan)

parent d486bc15
Pipeline #2189 canceled with stages
......@@ -37,7 +37,7 @@ proc doUpdateProject(config: ProgConf, project: DebPackage): Err =
var stderr, localVer, serverVer: string
project.log.logDebug(project.name, "Pulling project at " & project.path)
if gbpPull(config.uscanPath, project.path, stderr) != 0:
if gbpPull(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while pulling", stderr)
return Err.failed
else:
......@@ -55,28 +55,28 @@ proc doUpdateProject(config: ProgConf, project: DebPackage): Err =
project.log.logInfo(project.name, "[" & localVer & "] [" & serverVer & "]. Start upgrading source code.")
project.log.logDebug(project.name, "Upgrading new version [" & serverVer & "] at " & project.path)
if gbpUpdate(config.uscanPath, project.path, stderr) != 0:
if gbpUpdate(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while updating", stderr)
return Err.failed
else:
project.log.logInfo(project.name, "Upgrade to new version successfully. Making changelog.")
project.log.logDebug(project.name, "Creating changelog at " & project.path)
if gbpDch(config.uscanPath, project.path, serverVer, stderr) != 0:
if gbpDch(config.gbpPath, project.path, serverVer, stderr) != 0:
project.log.logErr(project.name, "Error while creating new changelog", stderr)
return Err.failed
else:
project.log.logInfo(project.name, "New changelog was created. Making new tag.")
project.log.logDebug(project.name, "Creating new tags and branches " & project.path)
if gbpTag(config.uscanPath, project.path, stderr) != 0:
if gbpTag(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while creating new tag", stderr)
return Err.failed
else:
project.log.logInfo(project.name, "Create new tag successfully. Start pushing.")
project.log.logDebug(project.name, "Pushing branches at " & project.path)
if gbpPush(config.uscanPath, project.path, stderr) != 0:
if gbpPush(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while pushing new patches", stderr)
return Err.failed
else:
......@@ -138,7 +138,7 @@ proc pullProjectAll(config: ProgConf) =
project.path = path
project.name = path.splitPath.tail
project.log.logDebug(project.name, "Pulling at " & project.path)
if gbpPull(config.uscanPath, project.path, stderr) != 0:
if gbpPull(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while pulling", stderr)
else:
project.log.logInfo(project.name, "Pulled successfully.")
......@@ -158,7 +158,7 @@ proc pullProjectArr(config: ProgConf, projectArr: seq[string]) =
project.log.logErr(project.name, "Dir doesn't exist", "")
else:
project.log.logDebug(project.name, "Pulling at " & project.path)
if gbpPull(config.uscanPath, project.path, stderr) != 0:
if gbpPull(config.gbpPath, project.path, stderr) != 0:
project.log.logErr(project.name, "Error while pulling", stderr)
else:
project.log.logInfo(project.name, "Pulled successfully.")
......
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