ForceUpdate executes a forced update and upgrade directly and synchronously and is intended to be used only within a tool, not a service.
()
| 480 | // ForceUpdate executes a forced update and upgrade directly and synchronously |
| 481 | // and is intended to be used only within a tool, not a service. |
| 482 | func (u *Updater) ForceUpdate() error { |
| 483 | return u.m.Do("update and upgrade", func(w *mgr.WorkerCtx) error { |
| 484 | return u.updateAndUpgrade(w, u.getIndexURLsWithLock(), true, true) |
| 485 | }) |
| 486 | } |
| 487 | |
| 488 | // UpdateFromURL installs an update from the provided url. |
| 489 | func (u *Updater) UpdateFromURL(url string) error { |
no test coverage detected