Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 192706

Summary: emerge -pq --depclean shouldn't produce output if there's nothing to do
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 194041    
Attachments: do not print a summary if --quiet and there is nothing to clean

Description Hanno Böck gentoo-dev 2007-09-16 17:30:37 UTC
portage parameter -q is (at least I think so) intended that it should, in combination with -p, not output anything if there's nothing to do.

e.g. emerge -puDq world is perfectly usable for a cron-job, that should inform admins about pending updates.

for --depclean, something similar is not possible. I'd expect emerge -pq --depclean not to produce output if there's nothing to clean. But instead it produces a big warning (which is pointless if there's nothing to do) and a summary.
Comment 1 Zac Medico gentoo-dev 2007-09-25 16:56:20 UTC
The big fat warning has already been removed for bug #184687. I'll go ahead and remove the summary too.
Comment 2 Zac Medico gentoo-dev 2007-09-28 05:12:46 UTC
This has been released in 2.1.3.10.
Comment 3 Zac Medico gentoo-dev 2007-09-28 06:45:17 UTC
Created attachment 132064 [details, diff]
do not print a summary if --quiet and there is nothing to clean

Apparently I forgot to merge this patch before releasing 2.1.3.10.
Comment 4 Zac Medico gentoo-dev 2007-09-28 06:45:55 UTC
Reopening until this is released.
Comment 5 Zac Medico gentoo-dev 2007-09-28 23:17:42 UTC
This has been released in 2.1.3.11.