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

Bug 416917

Summary: etc-update should have a -q/--quiet option
Product: Portage Development Reporter: Christian Ruppert (idl0r) <idl0r>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: infra-bugs
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 431026    
Attachments: dispatch-conf.diff
add etc-update -q/--quiet option

Description Christian Ruppert (idl0r) gentoo-dev 2012-05-21 14:26:41 UTC
Created attachment 312521 [details, diff]
dispatch-conf.diff

# etc-update --preen
Scanning Configuration files...

We (Infra) would like to use it within cfengine so "automated" runs.

Alternatively we have a quite old and modified dispatch-conf:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-src/portage/bin/dispatch-conf?revision=1.7.2.10&view=markup
Attached is the diff against the above mentioned revision.
It basically just needs a "non-interactive" option.
Comment 1 Zac Medico gentoo-dev 2012-05-24 19:26:22 UTC
Created attachment 312989 [details, diff]
add etc-update -q/--quiet option

This option basically sends stdout to /dev/null for all non-essential messages. Is that what you want? Why don't you just do `etc-update --preen >/dev/null`?
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2012-05-24 19:59:51 UTC
That patch looks good but I didn't test it yet.
Well.. tbh I wasn't thinking about redirecting though It may be a good idea to offer a --quiet/-q option anyway.
Comment 4 Zac Medico gentoo-dev 2012-09-08 23:51:15 UTC
This is fixed in 2.1.11.14 and 2.2.0_alpha125.
Comment 5 SpanKY gentoo-dev 2012-09-09 03:29:05 UTC
might be better to add a vecho helper:
 vecho() { ${QUIET} && echo "$@" ; }