mirror of https://github.com/jetkvm/kvm.git
fix(ota): set updating to false when no updates are available
This commit is contained in:
parent
9c4a9e144f
commit
61c2fa4a88
|
|
@ -228,6 +228,12 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
|
||||||
s.triggerComponentUpdateState("system", systemUpdate)
|
s.triggerComponentUpdateState("system", systemUpdate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !appUpdate.pending && !systemUpdate.pending {
|
||||||
|
scopedLogger.Info().Msg("No updates available")
|
||||||
|
s.updating = false
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
scopedLogger.Trace().Bool("pending", appUpdate.pending).Msg("Checking for app update")
|
scopedLogger.Trace().Bool("pending", appUpdate.pending).Msg("Checking for app update")
|
||||||
|
|
||||||
if appUpdate.pending {
|
if appUpdate.pending {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue