FS#43012 - "pacman -Rp" (--remove --print) does not print targets if a HoldPkg was found
Attached to Project:
Pacman
Opened by Score_Under (Score_Under) - Friday, 05 December 2014, 04:54 GMT
Opened by Score_Under (Score_Under) - Friday, 05 December 2014, 04:54 GMT
|
Details
Summary and Info:
I'm not sure if this is a bug (if not, maybe the man page could mention this). When attempting to print the list of targets for a --remove operation, if a HoldPkg is one of those targets, the list will never be printed. Instead ":: HoldPkg was found in target list. Do you want to continue? [y/N] " will be printed and pacman will exit immediately with error code 1. Steps to Reproduce: pacman -Rcp pacman |
This task depends upon
Interaction is impossible, so I think "Do you want to continue?" is a strange message to print. Since the command is likely to have its stdout captured and treated as a package list, it would probably make more sense if the message appeared on stderr.
https://projects.archlinux.org/pacman.git/tree/src/pacman/util.c#n1384
Which dates back to 2008... The same behavior exists in multiselect_question. Offhand, I'm not sure why we couldn't *always* dump this to stderr.