pyinfra
pyinfra copied to clipboard
Problem with a different sudo message
for example:
(it's impossible to use
yay, for example, or build a package from source on arch linux)
makepkg doesn't allow running under sudo. It then asks for a password...:
[sudo] password for user1:
pyinfra cannot process this request because the password prompt is hardcoded.
Are there any solutions?
The line is showing (https://github.com/pyinfra-dev/pyinfra/blob/3.x/pyinfra/connectors/util.py#L203) but pyinfra is looking at the last line, which here is the WARNING line. Changing pyinfra to look at all lines (from last to first) is probably the best option here.
I'm not a fan of matching the line at all but unfortunately I've yet to come up with something better..