forked from TrueCloudLab/restic
prune: Don't show "packs processed" for quiet runs
This commit is contained in:
parent
551b31ce3c
commit
1f3f68b2c0
2 changed files with 8 additions and 1 deletions
7
changelog/unreleased/issue-4147
Normal file
7
changelog/unreleased/issue-4147
Normal 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
|
|
@ -473,7 +473,7 @@ func decidePackAction(ctx context.Context, opts PruneOptions, repo restic.Reposi
|
||||||
}
|
}
|
||||||
|
|
||||||
// loop over all packs and decide what to do
|
// 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 {
|
err := repo.List(ctx, restic.PackFile, func(id restic.ID, packSize int64) error {
|
||||||
p, ok := indexPack[id]
|
p, ok := indexPack[id]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in a new issue