[yabridgectl] Track created moduleinfo.json files

Otherwise they're considered orphans immediately after creating them.
This commit is contained in:
Robbert van der Helm
2022-11-07 20:55:02 +01:00
parent 8e775db5eb
commit 53ae2f9dff
2 changed files with 20 additions and 7 deletions
+8
View File
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html). Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
# yabridgectl
- Fixed converted VST 3.7.5 `moduleinfo.json` files being considered orphan
files immediately after yabridgectl created them as part of the sync
operation.
## [5.0.0] - 2022-11-02 ## [5.0.0] - 2022-11-02
# Added # Added
+12 -7
View File
@@ -560,14 +560,19 @@ pub fn do_sync(config: &mut Config, options: &SyncOptions) -> Result<()> {
let converted_json = let converted_json =
serde_jsonrc::to_string_pretty(&converted_module_info) serde_jsonrc::to_string_pretty(&converted_module_info)
.context("Could not format JSON file")?; .context("Could not format JSON file")?;
util::write(target_moduleinfo_path, converted_json) util::write(&target_moduleinfo_path, converted_json)
}); });
if let Err(error) = result { match result {
eprintln!( Ok(_) => {
"Error converting '{}', skipping...\n{}", managed_vst3_bundle_files.insert(target_moduleinfo_path);
original_moduleinfo_path.display(), }
error Err(error) => {
); eprintln!(
"Error converting '{}', skipping...\n{}",
original_moduleinfo_path.display(),
error
);
}
} }
} }