vup: add more diagnostic lines for `v -v up`

pull/6221/head^2
Delyan Angelov 2020-08-25 19:54:27 +03:00
parent b9e408c499
commit 9b0ef781dc
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,9 @@ fn main() {
}
fn (app App) update_from_master() {
if app.is_verbose {
println('> updating from master ...')
}
if !os.exists('.git') {
// initialize as if it had been cloned
app.git_command('init')
@ -59,6 +62,9 @@ fn (app App) update_from_master() {
fn (app App) recompile_v() {
// NB: app.vexe is more reliable than just v (which may be a symlink)
vself := '$app.vexe self'
if app.is_verbose {
println('> recompiling v itself with `$vself` ...')
}
if self_result := os.exec(vself) {
println(self_result.output)
if self_result.exit_code == 0 {