Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#65058 - Add option to skip size confirmation but not everything like --noconfirm
Attached to Project:
Pacman
Opened by Volker Weißmann (volker_weissmann) - Sunday, 05 January 2020, 15:46 GMT
Last edited by Allan McRae (Allan) - Sunday, 05 January 2020, 21:03 GMT
Opened by Volker Weißmann (volker_weissmann) - Sunday, 05 January 2020, 15:46 GMT
Last edited by Allan McRae (Allan) - Sunday, 05 January 2020, 21:03 GMT
|
DetailsAs you know, --noconfirm auto-answers all questions with yes. An option, that auto-answers the size confirmation with yes, but does not answer the other confirmations would be useful for scripts that should halt if there is a problem but not if the package is big.
When I say "the size confirmation", I mean messages like these: Total Download Size: ... MiB Total Installed Size: ... MiB :: Proceed with installation [Y/n] IMHO you could also completely remove this size confirmation. |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 05 January 2020, 21:03 GMT
Reason for closing: Won't implement
Sunday, 05 January 2020, 21:03 GMT
Reason for closing: Won't implement
For fully automated scripting use, you may be interested in https://github.com/andrewgregory/pacutils/blob/master/doc/pactrans.pod#prompt-disposition-options
I'm not sure it makes sense to offer a noconfirm option that actually does make you confirm things, since that would cause Pacman to block on input rather than failing gracefully in a way that can be caught via the exit code.
Because those prompts for "no real problems" make scripting kind of a nightmare.
Pacman doesn't really offer a guarantee that it's suitable for scripting, and we've historically been very reluctant to do much work in that regard.