MCPcopy
hub / github.com/safing/portmaster / ForceUpdate

Method ForceUpdate

service/updates/module.go:482–486  ·  view source on GitHub ↗

ForceUpdate executes a forced update and upgrade directly and synchronously and is intended to be used only within a tool, not a service.

()

Source from the content-addressed store, hash-verified

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.
482func (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.
489func (u *Updater) UpdateFromURL(url string) error {

Callers 2

downloadFunction · 0.80
updateFunction · 0.80

Calls 3

updateAndUpgradeMethod · 0.95
getIndexURLsWithLockMethod · 0.95
DoMethod · 0.45

Tested by

no test coverage detected