diff --git a/pkg/repository/clone_mirror.go b/pkg/repository/clone_mirror.go index 510a07eae8..cb9e44b4eb 100644 --- a/pkg/repository/clone_mirror.go +++ b/pkg/repository/clone_mirror.go @@ -383,7 +383,7 @@ func download(targetDir, tmpDir string, repo *V1Repository, item *v1manifest.Ver // Skip installed file if exists file valid if utils.IsExist(dstFile) { if err := validate(targetDir); err == nil { - fmt.Println("Skip exists file:", filepath.Join(targetDir, item.URL)) + fmt.Println("Skipping existing file:", filepath.Join(targetDir, item.URL)) return nil } } diff --git a/pkg/repository/progress.go b/pkg/repository/progress.go index f46de8fd98..951dc99a88 100644 --- a/pkg/repository/progress.go +++ b/pkg/repository/progress.go @@ -42,7 +42,7 @@ func (p *ProgressBar) Start(url string, size int64) { p.size = size p.bar = pb.Start64(size) p.bar.Set(pb.Bytes, true) - p.bar.SetTemplateString(fmt.Sprintf(`download %s {{counters . }} {{percent . }} {{speed . }}`, url)) + p.bar.SetTemplateString(fmt.Sprintf(`download %s {{counters . }} {{percent . }} {{speed . "%%s/s" "? MiB/s"}}`, url)) } // SetCurrent implement the DownloadProgress interface