From 92ddff7f613213ecd9fa6e6cc64760dc28cfcc0e Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 3 Sep 2025 14:26:11 +0200 Subject: [PATCH] fix: cleanup with no packages --- brew.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brew.py b/brew.py index 0945ff6..62c5286 100755 --- a/brew.py +++ b/brew.py @@ -529,12 +529,12 @@ def cli_cleanup(args: ArgParams) -> None: ''' total_savings = 0 packages = Cellar.infoAll(args.packages, assertInstalled=True) - if not packages: + if args.packages and not packages: Log.error('no package found') return if not args.packages: - Log.info('==> Removing cached downloads') + Log.info('==> Removing cached files') total_savings += Cellar.cleanup(args.prune, dryRun=args.dry) # remove all non-active versions