From 52bafb469d903ac8fa1e2bcd94552591683441c2 Mon Sep 17 00:00:00 2001 From: izder456 Date: Thu, 17 Oct 2024 11:36:28 -0500 Subject: [PATCH] Make OpenBSD step less talky and improve verbiage. This commit removes the command flag feedback. This commit also swaps the output "update", for "upgrade", making this step closer to other steps for consistency. --- src/steps/os/openbsd.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/steps/os/openbsd.rs b/src/steps/os/openbsd.rs index b7699b3d..bc876a95 100644 --- a/src/steps/os/openbsd.rs +++ b/src/steps/os/openbsd.rs @@ -24,16 +24,12 @@ pub fn upgrade_openbsd(ctx: &ExecutionContext) -> Result<()> { let is_current = is_openbsd_current(ctx)?; if ctx.config().dry_run() { - println!("Would update the OpenBSD system"); - if is_current { - println!("Would use -s flag when upgrading system"); - } + println!("Would upgrade the OpenBSD system"); return Ok(()); } let mut args = vec!["/usr/sbin/sysupgrade", "-n"]; if is_current { - println!("OpenBSD is running -current, passing -s flag"); args.push("-s"); } @@ -47,10 +43,7 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> { let is_current = is_openbsd_current(ctx)?; if ctx.config().dry_run() { - println!("Would update OpenBSD packages"); - if is_current { - println!("Would use -Dsnap flag when upgrading packages"); - } + println!("Would upgrade OpenBSD packages"); return Ok(()); } @@ -63,7 +56,6 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> { let mut args = vec!["/usr/sbin/pkg_add", "-u"]; if is_current { - println!("OpenBSD is running -current, passing -Dsnap flag"); args.push("-Dsnap"); }