aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-22 19:36:46 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-22 19:36:46 +0200
commitbd81c6695b97d2d23be8a81d27cd20748eba5b75 (patch)
treec3b58b2cd2136502aaf3a3784264344907e882ee /soko.go
parentBump the version (diff)
downloadsoko-bd81c6695b97d2d23be8a81d27cd20748eba5b75.tar.gz
soko-bd81c6695b97d2d23be8a81d27cd20748eba5b75.tar.bz2
soko-bd81c6695b97d2d23be8a81d27cd20748eba5b75.zip
Provide a fullupdate option instead of cleanup
The normal update works incrementally, the full update can be used in case something went wrong during the incremental update. It updates all versions, packages and categories. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'soko.go')
-rw-r--r--soko.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/soko.go b/soko.go
index b0e96f2..46c56bc 100644
--- a/soko.go
+++ b/soko.go
@@ -14,9 +14,9 @@ import (
func printHelp() {
fmt.Println("Please specific one of the following options:")
- fmt.Println(" soko update -- update the database")
- fmt.Println(" soko cleanup -- log and update outdated data ")
- fmt.Println(" soko serve -- serve the application")
+ fmt.Println(" soko update -- incrementally update the database")
+ fmt.Println(" soko fullupdate -- update the database ")
+ fmt.Println(" soko serve -- serve the application")
}
func isCommand(command string) bool {
@@ -35,8 +35,8 @@ func main() {
app.Serve()
} else if isCommand("update") {
portage.Update()
- } else if isCommand("cleanup") {
- portage.CleanUp()
+ } else if isCommand("fullupdate") {
+ portage.FullUpdate()
} else {
printHelp()
}