[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
+12 -7
View File
@@ -560,14 +560,19 @@ pub fn do_sync(config: &mut Config, options: &SyncOptions) -> Result<()> {
let converted_json =
serde_jsonrc::to_string_pretty(&converted_module_info)
.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 {
eprintln!(
"Error converting '{}', skipping...\n{}",
original_moduleinfo_path.display(),
error
);
match result {
Ok(_) => {
managed_vst3_bundle_files.insert(target_moduleinfo_path);
}
Err(error) => {
eprintln!(
"Error converting '{}', skipping...\n{}",
original_moduleinfo_path.display(),
error
);
}
}
}