check: suggest repair pack for all damaged packs

This commit is contained in:
Michael Eischer 2024-01-27 19:00:23 +01:00
parent 772e3416d1
commit 544fe38786
1 changed files with 1 additions and 3 deletions

View File

@ -336,9 +336,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
errorsFound = true
Warnf("%v\n", err)
if err, ok := err.(*checker.ErrPackData); ok {
if strings.Contains(err.Error(), "wrong data returned, hash is") {
salvagePacks = append(salvagePacks, err.PackID)
}
salvagePacks = append(salvagePacks, err.PackID)
}
}
p.Done()