summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-02 18:17:21 -0500
committerJeff Carr <[email protected]>2025-10-02 18:17:21 -0500
commitc93300a4b894e11aa2a0b133dfa0b623edf484d1 (patch)
tree6e737353bc941fb47db8f1a91d3033ff2cc5d872 /main.go
parent9abd674ecbdab30afd087bdd851a832e235dc1aa (diff)
don't init forge on upgrade
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 3ce450c..445ca89 100644
--- a/main.go
+++ b/main.go
@@ -38,6 +38,12 @@ func main() {
state = make(map[*gitpb.Repo]string)
debnames = make(map[*gitpb.Repo]string)
+ if argv.Upgrade != nil {
+ me.machine, _ = zoopb.InitMachine()
+ doAptUpgrade()
+ okExit("")
+ }
+
me.forge = forgepb.Init()
me.forge.Config.DumpENV()