mirror of
https://github.com/safing/portmaster
synced 2025-04-23 12:29:10 +00:00
Update for changed DownloadUpdates method signature
This commit is contained in:
parent
5dab7c9f2b
commit
0fbd0a3ca6
3 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ func downloadUpdates() error {
|
|||
}
|
||||
|
||||
// Download all required updates.
|
||||
err = registry.DownloadUpdates(context.TODO(), false)
|
||||
err = registry.DownloadUpdates(context.TODO(), true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ func verifyUpdates(ctx context.Context) error {
|
|||
// Re-download broken files.
|
||||
registry.MandatoryUpdates = helper.MandatoryUpdates()
|
||||
registry.AutoUnpack = helper.AutoUnpackUpdates()
|
||||
err = registry.DownloadUpdates(ctx, false)
|
||||
err = registry.DownloadUpdates(ctx, true)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to re-download files: %w", err)
|
||||
}
|
||||
|
|
|
@ -287,7 +287,7 @@ func checkForUpdates(ctx context.Context) (err error) {
|
|||
return //nolint:nakedret // TODO: Would "return err" work with the defer?
|
||||
}
|
||||
|
||||
err = registry.DownloadUpdates(ctx, !forcedUpdate)
|
||||
err = registry.DownloadUpdates(ctx, forcedUpdate)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("failed to download updates: %w", err)
|
||||
return //nolint:nakedret // TODO: Would "return err" work with the defer?
|
||||
|
|
Loading…
Add table
Reference in a new issue