diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-04-22 19:36:46 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-04-22 19:36:46 +0200 |
commit | bd81c6695b97d2d23be8a81d27cd20748eba5b75 (patch) | |
tree | c3b58b2cd2136502aaf3a3784264344907e882ee /soko.go | |
parent | Bump the version (diff) | |
download | soko-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.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() } |