From cdc6d6fa880433ce8ce28c8e7c1f0cbc9ac35691 Mon Sep 17 00:00:00 2001 From: relikd Date: Fri, 29 Aug 2025 17:03:56 +0200 Subject: [PATCH] chore: logical order --- brew.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/brew.py b/brew.py index 03d82ae..973804f 100755 --- a/brew.py +++ b/brew.py @@ -365,9 +365,10 @@ def cli_uninstall(args: ArgParams) -> None: needsUninstall = sorted(recipe.remove) - # if not dry-run, show potential changes - for pkg in [] if args.dry_run else needsUninstall: - Log.main(f'==> will remove {pkg}.') + # show potential changes + if not args.dry_run: + for pkg in needsUninstall: + Log.main(f'==> will remove {pkg}.') # soft-fail check. warning for any doubly used dependencies for pkg in sorted(recipe.skip):