Creating empty bundle cache on init to avoid warninigs

pull/10/head
Dennis Schwerdel 5 years ago
parent 363971d619
commit 1e4831bb27
  1. 7
      CHANGELOG.md
  2. 2
      src/bundledb/db.rs

@ -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

@ -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(())
}

Loading…
Cancel
Save