From 1f3f68b2c04a9a76a976ed84c6f7d49536fe2edd Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 14 Jan 2023 18:26:57 +0100 Subject: [PATCH] prune: Don't show "packs processed" for quiet runs --- changelog/unreleased/issue-4147 | 7 +++++++ cmd/restic/cmd_prune.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/issue-4147 diff --git a/changelog/unreleased/issue-4147 b/changelog/unreleased/issue-4147 new file mode 100644 index 000000000..f2aea018b --- /dev/null +++ b/changelog/unreleased/issue-4147 @@ -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 diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 6321a947e..f59be2967 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -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 {