Creating empty bundle cache on init to avoid warninigs

This commit is contained in:
Dennis Schwerdel 2017-04-12 09:12:17 +02:00
parent 363971d619
commit 1e4831bb27
2 changed files with 7 additions and 2 deletions

View File

@ -4,8 +4,11 @@ This project follows [semantic versioning](http://semver.org).
### UNRELEASED
- Calling sodiumoxide::init for faster algorithms and thread safety (not needed)
- Locking local repository to avoid index corruption
- [added] Added CHANGELOG
- [added] Locking local repository to avoid index corruption
- [fixed] Creating empty bundle cache on init to avoid warninigs
- [fixed] Calling sodiumoxide::init for faster algorithms and thread safety (not needed)
### v0.1.0 (2017-04-11)
First working alpha release

View File

@ -200,6 +200,8 @@ impl BundleDb {
try!(fs::create_dir_all(layout.remote_bundles_path()).context(&layout.remote_bundles_path() as &Path));
try!(fs::create_dir_all(layout.local_bundles_path()).context(&layout.local_bundles_path() as &Path));
try!(fs::create_dir_all(layout.temp_bundles_path()).context(&layout.temp_bundles_path() as &Path));
try!(StoredBundle::save_list_to(&[], layout.local_bundle_cache_path()));
try!(StoredBundle::save_list_to(&[], layout.remote_bundle_cache_path()));
Ok(())
}