UpdateFromURL installs an update from the provided url.
(url string)
| 487 | |
| 488 | // UpdateFromURL installs an update from the provided url. |
| 489 | func (u *Updater) UpdateFromURL(url string) error { |
| 490 | u.m.Go("custom update from url", func(w *mgr.WorkerCtx) error { |
| 491 | _ = u.updateAndUpgrade(w, []string{url}, true, true) |
| 492 | return nil |
| 493 | }) |
| 494 | |
| 495 | return nil |
| 496 | } |
| 497 | |
| 498 | // Configure makes slight configuration changes to the updater. |
| 499 | // It locks the index, which can take a while an update is running. |
no test coverage detected