commit:     b021b1472a596c7fabb03396c0b007005f9f3311
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Tue Jan 20 20:04:12 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 06:03:10 2026 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=b021b147

eclean/cli: collapse four lines to one

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Part-of: https://codeberg.org/gentoo/gentoolkit/pulls/3
Signed-off-by: Sam James <sam <AT> gentoo.org>

 pym/gentoolkit/eclean/cli.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pym/gentoolkit/eclean/cli.py b/pym/gentoolkit/eclean/cli.py
index f5c22c2..21ce4aa 100644
--- a/pym/gentoolkit/eclean/cli.py
+++ b/pym/gentoolkit/eclean/cli.py
@@ -612,10 +612,7 @@ def doAction(action, options, exclude={}, output=None):
         elif action in ["packages"]:
             clean_size = cleaner.clean_pkgs(clean_me, pkgdir)
         # vocabulary for final message
-        if options["pretend"]:
-            verb = "would be"
-        else:
-            verb = "were"
+        verb = "would be" if options["pretend"] else "were"
         # display freed space
         if not options["quiet"]:
             output.total("normal", clean_size, len(clean_me) + len(vcs), verb, 
action)

Reply via email to