Обновление: модули вне лицензии пропускаются с пояснением «не входит в лицензию — свяжитесь с ZETIT», а не срывают обновление
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -25,6 +25,7 @@ type updateProgressState struct {
|
||||
Total int64 `json:"total"`
|
||||
Target string `json:"target,omitempty"` // версия ядра после обновления (если ядро обновляется)
|
||||
Result string `json:"result,omitempty"`
|
||||
Note string `json:"note,omitempty"` // пояснение, которое нужно показать и после перезапуска ядра
|
||||
Err string `json:"error,omitempty"`
|
||||
Started time.Time `json:"started"`
|
||||
Version string `json:"version"` // версия работающего bj-server
|
||||
@@ -59,6 +60,12 @@ func progressTarget(v string) {
|
||||
updProg.s.Target = v
|
||||
}
|
||||
|
||||
func progressNote(n string) {
|
||||
updProg.Lock()
|
||||
defer updProg.Unlock()
|
||||
updProg.s.Note = n
|
||||
}
|
||||
|
||||
func progressEnd(result string, err error) {
|
||||
updProg.Lock()
|
||||
defer updProg.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user