mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Avoid progress hang with empty files
[NO NEW TESTS NEEDED] Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
This commit is contained in:
@ -151,6 +151,9 @@ func progressBar(prefix string, size int64, onComplete string) (*mpb.Progress, *
|
||||
decor.OnComplete(decor.CountersKibiByte("%.1f / %.1f"), ""),
|
||||
),
|
||||
)
|
||||
if size == 0 {
|
||||
bar.SetTotal(0, true)
|
||||
}
|
||||
|
||||
return p, bar
|
||||
}
|
||||
|
Reference in New Issue
Block a user