From dabefef098b4ef37a1e3d2b7d68d5a7c59e740d2 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 7 Jan 2022 00:28:54 +0100 Subject: [PATCH] [yabridgectl] Don't mention the method on sync Unless it's not set to copies. --- tools/yabridgectl/src/actions.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/yabridgectl/src/actions.rs b/tools/yabridgectl/src/actions.rs index 32a37b87..b29eddfe 100644 --- a/tools/yabridgectl/src/actions.rs +++ b/tools/yabridgectl/src/actions.rs @@ -532,10 +532,16 @@ pub fn do_sync(config: &mut Config, options: &SyncOptions) -> Result<()> { println!(); } + // Don't mind the ugly format string, the existence of the symlink-based installation method + // should be hidden as much as possible until it gets removed in yabridge 4.0 println!( - "Finished setting up {} plugins using {} ({} new), skipped {} non-plugin .dll files", + "Finished setting up {} plugins{} ({} new), skipped {} non-plugin .dll files", managed_plugins.len(), - config.method.plural_name(), + if config.method == InstallationMethod::Copy { + String::new() + } else { + format!(" using {}", config.method.plural_name()) + }, new_plugins.len(), num_skipped_files );