2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-04 10:00:48 +00:00

Merge pull request #4153 from MichaelEischer/fix-quiet-prune

prune: Don't show "packs processed" for quiet runs
This commit is contained in:
Michael Eischer 2023-01-14 20:11:34 +01:00 committed by GitHub
commit f5f13f6648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
Bugfix: Make `prune --quiet` not print progress
We have fixed a regression in restic 0.15.0 which caused `prune --quiet` to
show a progress bar while deciding how to process each pack files.
https://github.com/restic/restic/issues/4147
https://github.com/restic/restic/pull/4153

View File

@ -473,7 +473,7 @@ func decidePackAction(ctx context.Context, opts PruneOptions, repo restic.Reposi
}
// loop over all packs and decide what to do
bar := newProgressMax(quiet, uint64(len(indexPack)), "packs processed")
bar := newProgressMax(!quiet, uint64(len(indexPack)), "packs processed")
err := repo.List(ctx, restic.PackFile, func(id restic.ID, packSize int64) error {
p, ok := indexPack[id]
if !ok {