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.
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`?
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.
The etc-update patch is in git now: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=24a91dd6fb9bd9acdc5a72d2e830128c0f06bf98
This is fixed in 2.1.11.14 and 2.2.0_alpha125.
might be better to add a vecho helper: vecho() { ${QUIET} && echo "$@" ; }