Update for changed DownloadUpdates method signature
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user