Skip to content

Commit 8e234a8

Browse files
authored
admin/upload-index: Restore "skipping file" output (#5060)
1 parent 0cf0a45 commit 8e234a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/admin/upload_index.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ pub fn run(opts: Opts) -> anyhow::Result<()> {
3535
let pb = ProgressBar::new(files.len() as u64);
3636
pb.set_style(ProgressStyle::with_template("{bar:60} ({pos}/{len}, ETA {eta})").unwrap());
3737

38-
for file in files.iter().progress_with(pb) {
38+
for file in files.iter().progress_with(pb.clone()) {
3939
let crate_name = file.file_name().unwrap().to_str().unwrap();
4040
let path = repo.index_file(crate_name);
4141
if !path.exists() {
42+
pb.suspend(|| println!("skipping file `{}`", crate_name));
4243
continue;
4344
}
4445

0 commit comments

Comments
 (0)