From 5802e0f214c3b8c97bbfbb658258b011590a6e5b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 24 Dec 2024 05:16:28 -0600 Subject: [PATCH] show output on upgrade --- argv.go | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/argv.go b/argv.go index a1c5627..095e79e 100644 --- a/argv.go +++ b/argv.go @@ -20,7 +20,7 @@ type args struct { Release bool `arg:"--release" help:"use go-deb --release"` DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` ListPkgs bool `arg:"--list" help:"list all the packages on mirrors.wit.com"` - Update bool `arg:"--apt-update" help:"apt install on every package already installed"` + Upgrade bool `arg:"--apt-upgrade" help:"apt install on every mirrors.wit.com package already installed"` MakeInstall bool `arg:"--make-install" help:"run make install in each repo"` RepoMap string `arg:"--repomap" help:"parse a repomap from gowebd"` Recursive bool `arg:"--recursive" help:"go-clone --recursive"` diff --git a/main.go b/main.go index 72a5b9b..4b1055e 100644 --- a/main.go +++ b/main.go @@ -41,7 +41,7 @@ func main() { okExit("") } - if argv.Update { + if argv.Upgrade { if argv.DryRun { log.Info("--dry-run", []string{"apt", "update"}) } else { @@ -61,7 +61,7 @@ func main() { if argv.DryRun { log.Info("--dry-run", []string{"apt", "install", p.Name}) } else { - shell.Run([]string{"apt", "install", p.Name}) + shell.RunRealtime([]string{"apt", "install", p.Name}) } } }