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#15989 - Enable progress report on pipe output
Attached to Project:
Pacman
Opened by Michael Towers (gradgrind) - Wednesday, 19 August 2009, 12:57 GMT
Last edited by Xavier (shining) - Monday, 07 September 2009, 18:27 GMT
Opened by Michael Towers (gradgrind) - Wednesday, 19 August 2009, 12:57 GMT
Last edited by Xavier (shining) - Monday, 07 September 2009, 18:27 GMT
|
DetailsSummary and Info:
There is an option to prevent progress output, so why is it additionally blocked when pacman is not run from a terminal? Maybe some of us would like to get that output (without recompiling pacman)! Would it possible to remove those lines (about line 970 in pacman.c) or else consider some other possibility for getting progress output via a pipe? |
This task depends upon
Closed by Xavier (shining)
Monday, 07 September 2009, 18:27 GMT
Reason for closing: Won't implement
Additional comments about closing: see last comment
Monday, 07 September 2009, 18:27 GMT
Reason for closing: Won't implement
Additional comments about closing: see last comment
did you actually try to recompile and see what you would get ?
I guess the fact that the lines are terminated by '\r' and not '\n' might be a bit awkward in some situations - it might be preferable to use '\n' for pipes (should be easy enough to tweak in callback.c somewhere).
Used via python's subprocess.Popen with universal_newlines=True there seemed to be no problems.
I also like the current behavior, having progress bar when redirecting output seems very weird to me.
Your usage is rather special.
If you want more control on your interaction with pacman, I highly recommend to use libalpm directly.
There are python bindings, for example :
http://bbs.archlinux.org/viewtopic.php?id=60711