Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646404 - etc-update -q --automode -9 should be quieter
Summary: etc-update -q --automode -9 should be quieter
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 10:25 UTC by Felix W.
Modified: 2018-02-02 11:04 UTC (History)
1 user (show)

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


Attachments
etc-update automode quiet patch (etc-update_automode_9_quiet.patch,409 bytes, patch)
2018-02-02 11:04 UTC, Felix W.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix W. 2018-02-02 10:25:09 UTC
etc-update -q --automode -9 informs about any file that is about to be deleted/merged.

This defeats the point of having a quiet automode, as you really do not care what it is that is going to be gone.

The relevant part is any output relating to errors, but that'll be lost if you have to stick &>/dev/null into the command. This is a valid problem in automation.

In automode -5, there may be a point of keeping the 'Replacing: ' output if you want to examine the results post hoc. I'd keep it as is.

Please note that this is not a duplicate of #579968

Reproducible: Always

Steps to Reproduce:
1.sed -r 's/^mode/trigger/' /etc/etc-update.conf > /etc/._cfg0000_etc-update.conf 2.echo YES | etc-update -q --automode -9
3. 
Actual Results:  
# sed -r 's/^mode/trigger/' /etc/etc-update.conf > /etc/._cfg0000_etc-update.conf; echo YES | etc-update -q --automode -9
Deleting /etc/._cfg0000_etc-update.conf

Expected Results:  
Nothing printed to stdout/stderr if all is well.
Comment 1 Felix W. 2018-02-02 11:04:42 UTC
Created attachment 517554 [details, diff]
etc-update automode quiet patch

Patch makes etc-update -q --automode -9 really quiet.