Only print "repairing bundles" if actually repairing bundles

pull/10/head
Dennis Schwerdel 5 years ago
parent fcab656036
commit 12b00b13ec
  1. 4
      CHANGELOG.md
  2. 6
      src/bundledb/db.rs

@ -3,6 +3,10 @@
This project follows [semantic versioning](http://semver.org).
### UNRELEASED
* [fixed] Only print "repairing bundles" if actually repairing bundles
### v0.2.0 (2017-04-14)
* [added] Added CHANGELOG
* [added] Locking local repository to avoid index corruption

@ -339,8 +339,10 @@ impl BundleDb {
}
}
}
for id in ProgressIter::new("repairing bundles", to_repair.len(), to_repair.iter()) {
try!(self.repair_bundle(id.clone()));
if !to_repair.is_empty() {
for id in ProgressIter::new("repairing bundles", to_repair.len(), to_repair.iter()) {
try!(self.repair_bundle(id.clone()));
}
}
Ok(!to_repair.is_empty())
}

Loading…
Cancel
Save