Only print "repairing bundles" if actually repairing bundles

This commit is contained in:
Dennis Schwerdel 2017-04-14 13:13:39 +02:00
parent fcab656036
commit 12b00b13ec
2 changed files with 8 additions and 2 deletions

View File

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

View File

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