Hardcode the repository releases come from
routerUpdate.repository (a module option beside the update keys, not a router.* setting) defaults to the project's repository; the Updates page names it but no longer has a field for it. Forks and tests set it in a module. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -277,7 +277,7 @@ type updateData struct {
|
||||
OfferErr string
|
||||
Pending bool // an update waits for confirmation
|
||||
|
||||
Repository string // router.update.repository
|
||||
Repository string // routerUpdate.repository
|
||||
Git *GitCheck // what the last look at it found
|
||||
GitRun UpdateStatus // the look that is running or ran last
|
||||
}
|
||||
@@ -291,10 +291,8 @@ func (a *app) updateData() updateData {
|
||||
Pending: st.RollbackIn > 0,
|
||||
GitRun: unitRun(gitCheckUnit),
|
||||
}
|
||||
if s, err := loadSettings(a.sys.settingsPath()); err == nil {
|
||||
d.Repository = s.repository()
|
||||
d.Git = a.gitCheck(d.Repository)
|
||||
}
|
||||
d.Repository = a.sys.repository()
|
||||
d.Git = a.gitCheck()
|
||||
d.Progress, d.Step = updateProgress(d.Status.Log)
|
||||
return d
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user