Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nong Hoang Tu
source-updater
Commits
de682a6f
Commit
de682a6f
authored
Mar 09, 2021
by
Nong Hoang Tu
Browse files
Change method of log for up-to-date status so maintainer will not confused
parent
8d4b03e0
Pipeline
#2190
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/cores/controller.nim
View file @
de682a6f
...
@@ -46,7 +46,7 @@ proc doUpdateProject(config: ProgConf, project: DebPackage): Err =
...
@@ -46,7 +46,7 @@ proc doUpdateProject(config: ProgConf, project: DebPackage): Err =
project
.
log
.
logDebug
(
project
.
name
,
"Checking new update at "
&
project
.
path
)
project
.
log
.
logDebug
(
project
.
name
,
"Checking new update at "
&
project
.
path
)
let
updateStt
=
checkUpdate
(
config
.
uscanPath
,
project
.
path
,
localVer
,
serverVer
,
stderr
)
let
updateStt
=
checkUpdate
(
config
.
uscanPath
,
project
.
path
,
localVer
,
serverVer
,
stderr
)
if
updateStt
==
Err
.
updated
:
if
updateStt
==
Err
.
updated
:
project
.
log
.
log
Info
(
project
.
name
,
"
Up to date
"
)
project
.
log
.
log
Debug
(
project
.
name
,
"
is having latest version
"
)
return
Err
.
updated
return
Err
.
updated
elif
updateStt
==
Err
.
failed
:
elif
updateStt
==
Err
.
failed
:
project
.
log
.
logErr
(
project
.
name
,
"Error while checking for new version"
,
stderr
)
project
.
log
.
logErr
(
project
.
name
,
"Error while checking for new version"
,
stderr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment