Pacman

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.
Tasklist

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
Task Type Feature Request
Category General
Status Closed
Assigned To Xavier (shining)
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary 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
Comment by Xavier (shining) - Wednesday, 19 August 2009, 13:00 GMT
would this even work at all ??

did you actually try to recompile and see what you would get ?
Comment by Michael Towers (gradgrind) - Wednesday, 19 August 2009, 14:04 GMT
Yes, I tried it and it worked fine.
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.
Comment by Xavier (shining) - Monday, 07 September 2009, 18:26 GMT
Well Dan also seems to be against this : "spewing a lot of useless info"
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

Loading...