Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416917 - etc-update should have a -q/--quiet option
Summary: etc-update should have a -q/--quiet option
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 431026
  Show dependency tree
 
Reported: 2012-05-21 14:26 UTC by Christian Ruppert (idl0r)
Modified: 2012-09-09 03:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dispatch-conf.diff (dispatch-conf.diff,7.42 KB, patch)
2012-05-21 14:26 UTC, Christian Ruppert (idl0r)
Details | Diff
add etc-update -q/--quiet option (etc_update_quiet.patch,1.88 KB, patch)
2012-05-24 19:26 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 "$@" ; }