mirror of https://github.com/dswd/zvault
Only print "repairing bundles" if actually repairing bundles
This commit is contained in:
parent
fcab656036
commit
12b00b13ec
|
@ -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
|
||||||
|
|
|
@ -339,9 +339,11 @@ impl BundleDb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !to_repair.is_empty() {
|
||||||
for id in ProgressIter::new("repairing bundles", to_repair.len(), to_repair.iter()) {
|
for id in ProgressIter::new("repairing bundles", to_repair.len(), to_repair.iter()) {
|
||||||
try!(self.repair_bundle(id.clone()));
|
try!(self.repair_bundle(id.clone()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Ok(!to_repair.is_empty())
|
Ok(!to_repair.is_empty())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue