show output on upgrade
This commit is contained in:
parent
bb54d3ed62
commit
5802e0f214
2
argv.go
2
argv.go
|
@ -20,7 +20,7 @@ type args struct {
|
||||||
Release bool `arg:"--release" help:"use go-deb --release"`
|
Release bool `arg:"--release" help:"use go-deb --release"`
|
||||||
DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
|
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"`
|
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"`
|
MakeInstall bool `arg:"--make-install" help:"run make install in each repo"`
|
||||||
RepoMap string `arg:"--repomap" help:"parse a repomap from gowebd"`
|
RepoMap string `arg:"--repomap" help:"parse a repomap from gowebd"`
|
||||||
Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
|
Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
|
||||||
|
|
4
main.go
4
main.go
|
@ -41,7 +41,7 @@ func main() {
|
||||||
okExit("")
|
okExit("")
|
||||||
}
|
}
|
||||||
|
|
||||||
if argv.Update {
|
if argv.Upgrade {
|
||||||
if argv.DryRun {
|
if argv.DryRun {
|
||||||
log.Info("--dry-run", []string{"apt", "update"})
|
log.Info("--dry-run", []string{"apt", "update"})
|
||||||
} else {
|
} else {
|
||||||
|
@ -61,7 +61,7 @@ func main() {
|
||||||
if argv.DryRun {
|
if argv.DryRun {
|
||||||
log.Info("--dry-run", []string{"apt", "install", p.Name})
|
log.Info("--dry-run", []string{"apt", "install", p.Name})
|
||||||
} else {
|
} else {
|
||||||
shell.Run([]string{"apt", "install", p.Name})
|
shell.RunRealtime([]string{"apt", "install", p.Name})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue