Fix progress for new index

This commit is contained in:
Alexander Neumann 2016-08-20 20:44:57 +02:00
parent d3da30e8fb
commit aa29c68189
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ func (cmd CmdPrune) Execute(args []string) error {
cmd.global.Verbosef("creating new index\n")
for _ = range repo.List(backend.Data, done) {
stats.packs++
}
bar = newProgressMax(cmd.global.ShowProgress(), uint64(stats.packs), "files")
idx, err = index.New(repo, bar)
if err != nil {