FS#32886 - Provide noconfirm-like option to skip normal prompts.
|
Details
`--noconfirm` Accepts the default for all dialogs. This is
inconvenient when you have something like package
replacements because this causes the upgrade/install to
fail. It would be nice to have an option that would only
accept defaults if it wouldn't cause a failure. A potential
name would be `--noconfirmmost`.
I have also noticed that most of the ones that cause failure are the options that have "no" as the default, that could be a simple way to implement this, if the default is yes, say yes, otherwise ask the user. |
This task depends upon
I haven't looked at the code but each prompt would probably have to give a bit of metadata.
There are no "simple terms" here.
The biggest thing that I am talking about is package conflicts. When you get a (pharaphrased) prompt such as: "$PKG1 and $PGK2 are in conflict, would you like to replace $PGK2? [y/N]". It is known at the time of printing that they both can't be installed, so the default option of "no" will cause the installation of $PKG1 to fail.
It is in this case that `--noconfirm` will say no and fail but I would like an option that lets me decide.
And, we might as well replace the noconfirm option with one that still prompts for package conflicts. If someone is using noconfirm, they're pretty much always planning to leave it sitting there unattented for a while, and even if they aren't, why is automatically quitting when a package conflict shows up EVER the desired behavior? If a given person wants to install a package, why would they EVER want pacman to just give up and quit instead of at least asking first or better yet going with a dangerous auto-yes? I would argue that whether --noconfirm is specified or not, nobody ever wants pacman to instantly exit on package conflicts without asking. 100% of the time.