summaryrefslogtreecommitdiffstats
path: root/src/qtmoduleupdater/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtmoduleupdater/main.go')
-rw-r--r--src/qtmoduleupdater/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qtmoduleupdater/main.go b/src/qtmoduleupdater/main.go
index b1058505..41fa4b7a 100644
--- a/src/qtmoduleupdater/main.go
+++ b/src/qtmoduleupdater/main.go
@@ -69,6 +69,8 @@ func appMain() error {
flag.BoolVar(&summaryOnly, "summarize", false /*default*/, "")
verbose := false
flag.BoolVar(&verbose, "verbose", false /*default*/, "Enable verbose logging output")
+ reset := false
+ flag.BoolVar(&reset, "reset", false, "Reset the batch update state")
autorun := false
flag.BoolVar(&autorun, "autorun", false, "Run automatically by reading settings from autorun.json")
flag.Parse()
@@ -115,6 +117,11 @@ func appMain() error {
return nil
}
+ if reset {
+ batch.clearStateCommit(gerrit)
+ return nil
+ }
+
return batch.runOneIteration(gerrit)
}